/* -------------------------------
   TRAINING REGISTER CENTER
   Giao diện frontend
---------------------------------- */

.trc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
  }
  
  .trc-tab-btn {
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .trc-tab-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
  }
  
  .trc-tab-btn:hover {
    background: #e2e8f0;
  }
  
  .trc-tab-content {
    display: none;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
  }
  
  .trc-tab-content.active {
    display: block;
  }
  
  .trc-session-table, .trc-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .trc-session-table th, .trc-session-table td,
  .trc-list-table th, .trc-list-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
  }
  
  .trc-session-table th, .trc-list-table th {
    background: #f7f7f7;
  }
  
  .trc-status {
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
  }
  
  .trc-status.open { background: #c6f6d5; color: #1a7f37; }
  .trc-status.full { background: #fed7d7; color: #c53030; }
  .trc-status.soon { background: #fefcbf; color: #975a16; }
  .trc-status.expired { background: #e2e8f0; color: #4a5568; }
  .trc-status.pending { background: #bee3f8; color: #2b6cb0; }
  
  .trc-register-form {
    margin-top: 30px;
    background: #f9fafb;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
  }
  
  .trc-register-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
  }
  
  .trc-register-form input,
  .trc-register-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 14px;
  }
  
  .trc-register-form button.trc-submit {
    margin-top: 15px;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
  }
  
  .trc-register-form button.trc-submit:hover {
    background: #005f8c;
  }
  
  .trc-message {
    margin-top: 10px;
    font-weight: 500;
  }
  
  .trc-message .success {
    color: #1a7f37;
  }
  
  .trc-message .error {
    color: #c53030;
  }
  
  .trc-registered-list {
    margin-top: 40px;
  }
  
  .trc-registered-list h4 {
    margin-bottom: 10px;
  }
  
  @media (max-width: 768px) {
    .trc-tabs {
      flex-direction: column;
      align-items: center;
    }
  
    .trc-session-table th, .trc-session-table td {
      font-size: 13px;
      padding: 6px;
    }
  }
  