:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  color: #333;
  background-color: #f5f5f5;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

#root {
  width: 100%;
  min-height: 100vh;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

html,
body,
#root {
  height: 100%;
  width: 100%;
}

/* Login Page */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #003d66 100%);
  position: relative;
  overflow: hidden;
}

.login-accent {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: rgba(0, 156, 173, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* Login Card */
.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 3rem 2rem;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h1 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 2rem;
  font-weight: 700;
}

.login-header p {
  margin: 0;
  color: #009cad;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tabs */
.login-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.login-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-tab:hover {
  color: #009cad;
}

.login-tab.active {
  color: #009cad;
  border-bottom-color: #009cad;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Error */
.login-error {
  padding: 1rem;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c00;
}

.login-error p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Fields */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-field label {
  color: #001f3d;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-field input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.login-field input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.login-field input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Submit Button */
.login-submit-btn {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #009cad 0%, #007a8f 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 156, 173, 0.3);
}

.login-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Forgot Password Section */
.forgot-password-section {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.login-link-btn {
  background: none;
  border: none;
  color: #009cad;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
}

.login-link-btn:hover {
  color: #001f3d;
  text-decoration: underline;
}

/* Info Message */
.login-info {
  padding: 1rem;
  background: #f0f8f9;
  border-radius: 6px;
  border-left: 3px solid #009cad;
  margin-top: auto;
}

.login-info p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Parent Signup Section */
.parent-signup-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.parent-signup-section p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
}

.signup-link-btn {
  background: linear-gradient(135deg, #009cad 0%, #007a8f 100%);
  color: white;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signup-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 156, 173, 0.3);
}

.signup-link-btn:active {
  transform: translateY(0);
}

/* Google Login Section */
.google-login-section {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1rem 0 0.75rem 0;
  gap: 1rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.divider span {
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.google-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.google-button-container > div {
  width: 100% !important;
}

/* Responsive */
@media (max-width: 600px) {
  .login-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .login-container {
    padding: 1rem;
  }

  .login-accent {
    bottom: -300px;
    right: -300px;
    width: 500px;
    height: 500px;
  }
}
.login-page {
  display: flex;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #009cad 100%);
  font-family: inherit;
}

.login-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left side - Image placeholder */
.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 31, 61, 0.3) 0%, rgba(0, 156, 173, 0.2) 100%);
}

.image-placeholder {
  text-align: center;
  color: white;
}

.image-placeholder h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.image-placeholder p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.placeholder-image {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed #f86718;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
}

/* Right side - Login form */
.login-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  background: white;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  margin: 2rem auto 0;
}

.login-card h1 {
  text-align: center;
  color: #333;
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.login-card h2 {
  text-align: center;
  color: #666;
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Tab buttons */
.tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #999;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: #009cad;
}

.tab-btn.active {
  color: #009cad;
  border-bottom-color: #f86718;
}

/* Tab content */
.tab-content {
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h2 {
  display: none;
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Button styling */
.login-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-btn:hover:not(:disabled) {
  background-color: #007a88;
}

.login-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* Error message */
.error-message {
  background-color: #fee;
  color: #c00;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-left: 4px solid #c00;
}

/* Placeholder notice */
.placeholder-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f0f8f9;
  border-radius: 4px;
  text-align: center;
  color: #009cad;
  font-size: 0.9rem;
  border-left: 4px solid #f86718;
}

.placeholder-notice p {
  margin: 0;
}

/* Signup prompt */
.signup-prompt {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f0f8f9;
  border-radius: 4px;
  text-align: center;
  border-left: 4px solid #22c55e;
}

.signup-prompt p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
}

.signup-link-btn {
  background: #009cad;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.signup-link-btn:hover {
  background: #007a88;
}

/* Link button for switching login/register mode */
.link-button {
  background: none;
  border: none;
  color: #009cad;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  font-size: inherit;
  padding: 0;
}

.link-button:hover {
  color: #007a88;
}

/* Toggle link */
.toggle-link {
  margin-top: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-left {
    display: none;
  }

  .login-right {
    flex: 1;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .placeholder-image {
    width: 200px;
    height: 200px;
  }
}

.signup-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #009cad 100%);
  font-family: inherit;
  padding: 2rem 0;
}

.signup-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 0 2rem;
}

/* Left side - Welcome message */
.signup-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.welcome-message {
  color: white;
  text-align: center;
}

.welcome-message h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.welcome-message p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.existing-account {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.existing-account p {
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.login-link-btn {
  background: white;
  color: #009cad;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.login-link-btn:hover {
  background: #f0f0f0;
}

/* Right side - Signup form */
.signup-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.signup-card {
  width: 100%;
}

.signup-card h1 {
  text-align: center;
  color: #333;
  margin: 0 0 2rem 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.section-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-group input.error-input {
  border-color: #ef4444;
}

.field-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

.error-message {
  padding: 0.75rem 1rem;
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.signup-btn {
  padding: 1rem;
  background: linear-gradient(135deg, #009cad 0%, #007a88 100%);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.signup-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.terms-info {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.8rem;
  color: #999;
}

.terms-info p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .signup-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .signup-left {
    min-height: auto;
  }

  .welcome-message h2 {
    font-size: 2rem;
  }

  .welcome-message p {
    font-size: 1rem;
  }

  .features-list {
    gap: 1rem;
  }

  .signup-right {
    padding: 1.5rem;
    max-height: none;
    border-radius: 0;
  }

  .signup-card h1 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
/* Parent Basic Signup Page */

.signup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #003d66 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.signup-accent {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: rgba(0, 156, 173, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.signup-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.signup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-header h1 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 2rem;
  font-weight: 700;
}

.signup-header p {
  margin: 0;
  color: #009cad;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form Step */
.form-step {
  width: 100%;
}

.form-step h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.5rem;
  font-weight: 600;
}

.step-desc {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  color: #001f3d;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-group input.error {
  border-color: #f44;
  background: #fff5f5;
}

.form-group input.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form-group input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.password-hint {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: -0.3rem;
}

/* Error Message */
.error-message {
  font-size: 0.8rem;
  color: #c00;
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

/* Submit Button */
.signup-submit-btn {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #009cad 0%, #007a8f 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.signup-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 156, 173, 0.3);
}

.signup-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.signup-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.signup-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.signup-footer p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
}

.login-link-btn {
  background: none;
  border: none;
  color: #009cad;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.login-link-btn:hover {
  color: #007a8f;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .signup-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .signup-header h1 {
    font-size: 1.75rem;
  }

  .form-step h2 {
    font-size: 1.25rem;
  }

  .step-desc {
    font-size: 0.9rem;
  }
}
  border-top: 1px solid #e0e0e0;
}

.signup-footer p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.signup-footer a {
  color: #009cad;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-footer a:hover {
  color: #001f3d;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .signup-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .signup-header h1 {
    font-size: 1.5rem;
  }

  .signup-form-container h2 {
    font-size: 1.2rem;
  }
}
/* Parent Email Verification Page */
.email-verify-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #003d66 100%);
  position: relative;
  overflow: hidden;
}

.email-verify-accent {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: rgba(0, 156, 173, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.email-verify-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 3rem 2rem;
  z-index: 1;
  position: relative;
}

.verify-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.verify-header h1 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 2rem;
  font-weight: 700;
}

.verify-header p {
  margin: 0;
  color: #009cad;
  font-size: 0.95rem;
}

.verify-error {
  padding: 1rem;
  background: #fee;
  border-left: 3px solid #f44;
  border-radius: 4px;
  color: #c33;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.verify-success {
  padding: 1rem;
  background: #efe;
  border-left: 3px solid #4f4;
  border-radius: 4px;
  color: #3c3;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.verify-form {
  width: 100%;
}

.form-step {
  width: 100%;
}

.form-step h2 {
  color: #001f3d;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.step-desc {
  color: #666;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #001f3d;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-group input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.code-input {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  font-family: 'Courier New', monospace;
}

.attempt-warning {
  color: #f86718;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

.verify-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.verify-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 156, 173, 0.3);
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.back-link-btn {
  display: block;
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: #009cad;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.back-link-btn:hover {
  color: #007a8a;
  text-decoration: underline;
}

.loading-section {
  text-align: center;
  padding: 2rem;
  color: #666;
}

@media (max-width: 600px) {
  .email-verify-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .verify-header h1 {
    font-size: 1.5rem;
  }
}
/* Parent PIN Verification Page */
.pin-verify-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #001f3d 0%, #003d66 100%);
  position: relative;
  overflow: hidden;
}

.pin-verify-accent {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: rgba(0, 156, 173, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.pin-verify-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 3rem 2rem;
  z-index: 1;
  position: relative;
}

.pin-error {
  padding: 1rem;
  background: #fee;
  border-left: 3px solid #f44;
  border-radius: 4px;
  color: #c33;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.pin-verify-form {
  width: 100%;
}

.account-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.info-row .label {
  color: #666;
  font-weight: 500;
}

.info-row .value {
  color: #001f3d;
  font-weight: 600;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.pin-input {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 0.8rem;
  font-family: 'Courier New', monospace;
}

.security-note {
  background: #f0f8ff;
  border: 1px solid #cce7ff;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #003d66;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.verify-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.verify-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 156, 173, 0.3);
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.back-link-btn {
  display: block;
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: #009cad;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.back-link-btn:hover {
  color: #007a8a;
  text-decoration: underline;
}

.cancel-link-btn {
  display: block;
  margin-top: 1rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.cancel-link-btn:hover {
  color: #666;
  text-decoration: underline;
}

.student-info-box {
  background: linear-gradient(135deg, #f0f8f9 0%, #e6f5f7 100%);
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.student-info-box .info-row {
  padding: 0.75rem 0;
}

.student-info-box .label {
  color: #007a8f;
  font-weight: 600;
}

@media (max-width: 600px) {
  .pin-verify-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .pin-input {
    font-size: 2rem;
    letter-spacing: 0.5rem;
  }

  .account-info {
    padding: 1rem;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .info-row .value {
    text-align: left;
    max-width: 100%;
    margin-top: 0.25rem;
  }
}
/* Quick Check-In Card */
.quick-checkin-card {
  background: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  width: 100%;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
  position: relative;
}

.back-btn {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: #009cad;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
}

.back-btn:hover {
  color: #001f3d;
  transform: translateX(-4px);
}

.page-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.2rem;
  font-weight: 700;
}

.info-box-compact {
  background-color: #fff4e6;
  border-left: 4px solid #f86718;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #333;
  font-size: 0.95rem;
  text-align: center;
}

.checkin-section {
  margin-bottom: 1.5rem;
}

.checkin-section h4 {
  margin: 0 0 0.75rem 0;
  color: #001f3d;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Mood Buttons */
.mood-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.mood-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #001f3d;
}

.mood-button:hover {
  border-color: #009cad;
  background-color: #f0f8f9;
}

.mood-button.selected {
  border-color: #009cad;
  background-color: #009cad;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.3);
}

.mood-button .emoji {
  font-size: 1.8rem;
}

.mood-button .label {
  font-size: 0.85rem;
}

/* Tag Buttons */
.tag-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag-button {
  padding: 0.6rem 1rem;
  border: 2px solid #001f3d;
  border-radius: 20px;
  background-color: white;
  color: #001f3d;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-button:hover {
  background-color: #f0f8f9;
}

.tag-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

/* Textarea */
.quick-checkin-card textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  color: #333;
}

.quick-checkin-card textarea::placeholder {
  color: #999;
}

/* Send Button */
.send-button {
  background-color: #001f3d;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.send-button:hover:not(:disabled) {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .quick-checkin-card {
    padding: 1rem;
  }

  .mood-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .tag-buttons {
    gap: 0.5rem;
  }

  .tag-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}
/* Wins Timeline Card */
.wins-timeline-card {
  background: white;
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 720px;
}

.wins-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wins-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.view-all-link {
  color: #009cad;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-all-link:hover {
  color: #001f3d;
}

/* Wins List */
.wins-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex: 1;
  min-height: 200px;
}

.wins-empty-state {
  text-align: center;
  color: #999;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.wins-empty-state p {
  margin: 0;
}

.win-item {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--win-color, #009cad);
  transition: all 0.3s ease;
  width: 100%;
}

.win-item.fade-out {
  opacity: 0.4;
}

.win-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.win-content {
  flex: 1;
}

.win-content h4 {
  margin: 0 0 0.35rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.win-content p {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.win-date {
  font-size: 0.85rem;
  color: #999;
}

/* Win Skeleton Loader */
.win-skeleton-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #e0e0e0;
  width: 100%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
  background: #e0e0e0;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-win-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-win-title {
  height: 0.95rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 50%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-win-description {
  height: 0.85rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 85%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-win-date {
  height: 0.75rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 30%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Add Win Button */
.add-win-button {
  background: white;
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #009cad;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-win-button:hover {
  background-color: #f0f8f9;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.15);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content-large {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Page Header for Modal */
.page-header-win {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
  position: relative;
}

.back-btn-win {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: #009cad;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
}

.back-btn-win:hover {
  color: #001f3d;
  transform: translateX(4px);
}

.page-header-win h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Win Info Box */
.win-info-box {
  background-color: #fff4e6;
  border-left: 4px solid #f86718;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #333;
  text-align: center;
  font-size: 0.95rem;
}

/* Win Categories */
.win-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.win-category-button {
  padding: 0.6rem 1rem;
  border: 2px solid #001f3d;
  border-radius: 20px;
  background-color: white;
  color: #001f3d;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.win-category-button:hover {
  background-color: #f0f8f9;
}

.win-category-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

/* Win Textarea */
.win-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  color: #333;
  margin-bottom: 1.5rem;
}

.win-textarea::placeholder {
  color: #999;
}

/* Save Win Button */
.save-win-button {
  background-color: #001f3d;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.save-win-button:hover:not(:disabled) {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

.save-win-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .wins-timeline-card {
    padding: 1rem;
  }

  .modal-content-large {
    padding: 1.5rem;
  }

  .win-categories {
    gap: 0.5rem;
  }

  .win-category-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}
/* Parent Welcome Onboarding Modal */

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.welcome-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.welcome-content {
  padding: 3rem 2rem;
  text-align: center;
}

.welcome-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.welcome-title {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.8rem;
  font-weight: 700;
}

.welcome-subtitle {
  margin: 0 0 1.5rem 0;
  color: #009cad;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-text {
  margin: 0 0 2rem 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Progress Bar */
.welcome-progress {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #009cad 0%, #007a8f 100%);
  transition: width 0.3s ease;
}

.welcome-step-indicator {
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Buttons */
.welcome-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.welcome-skip-btn,
.welcome-next-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.welcome-skip-btn {
  background: #f0f0f0;
  color: #666;
  border: 2px solid transparent;
}

.welcome-skip-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.welcome-next-btn {
  background: linear-gradient(135deg, #009cad 0%, #007a8f 100%);
  color: white;
}

.welcome-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 156, 173, 0.3);
}

.welcome-next-btn:active {
  transform: translateY(0);
}

/* Dots */
.welcome-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #009cad;
  width: 24px;
  border-radius: 4px;
}

.dot:hover {
  background: #bbb;
}

.dot.active:hover {
  background: #009cad;
}

/* Responsive */
@media (max-width: 600px) {
  .welcome-content {
    padding: 2rem 1.5rem;
  }

  .welcome-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .welcome-subtitle {
    font-size: 0.95rem;
  }

  .welcome-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .welcome-buttons {
    flex-direction: column;
  }
}
.parent-nav-sidebar {
  width: 230px;
  background: linear-gradient(135deg, #008b9d 0%, #006b7d 100%);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.parent-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
}

.parent-nav-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem 1rem;
  letter-spacing: 0.5px;
}

.parent-nav-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.parent-nav-section a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.parent-nav-section a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.parent-nav-section a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: #00d4ff;
  font-weight: 600;
}

.parent-nav-placeholder {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 2.5rem;
  visibility: hidden;
}

.parent-nav-user {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  margin-top: auto;
  margin-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  width: 100%;
}

.parent-nav-user.shifted-up {
  transform: translateY(50px);
}

.parent-nav-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.parent-nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff8c42;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.parent-nav-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.parent-nav-user-name {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.parent-nav-user-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parent-nav-logout {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 1rem auto 1rem;
  margin-bottom: 3rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.parent-nav-logout:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
/* Dashboard 2 - Clean Layout */
.dashboard2-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f8f9fa;
}

.dashboard2-header {
  background: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.dashboard2-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard2-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.dashboard2-sidebar {
  width: 250px;
  background: #009cad;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.dashboard2-nav {
  flex: 1;
}

.dashboard2-nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.dashboard2-nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard2-nav-section a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dashboard2-nav-section a:hover {
  background: rgba(0, 156, 173, 0.7);
  color: white;
}

.dashboard2-nav-section a.active {
  background: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* User Section */
.dashboard2-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard2-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dashboard2-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.dashboard2-user-info {
  flex: 1;
  min-width: 0;
}

.dashboard2-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard2-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Main Content */
.dashboard2-main {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.dashboard2-content {
  display: grid;
  grid-template-columns: 550px 1fr;
  gap: 2rem;
  height: 100%;
  padding: 2rem;
}

.dashboard2-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard2-right {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card Styling */
.dashboard2-card {
  background: white;
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard2-card h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.todo-card {
  min-height: 600px;
}

.todo-card-btn {
  background: white;
  border: 2px solid #001f3d;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #001f3d;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.todo-card-btn:hover {
  background: #f0f4f7;
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.15);
}

/* Todo Item */
.todo-item-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #001f3d;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.todo-item-container:hover {
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.15);
}

.todo-item-content {
  flex: 1;
}

.todo-item-content h2 {
  margin: 0 0 0.3rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.todo-subtitle {
  margin: 0 0 0.3rem 0;
  color: #001f3d;
  font-size: 0.9rem;
  font-weight: 500;
}

.todo-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.todo-circle {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border: 4px solid #a0d0e0;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.todo-item-container:hover .todo-circle {
  border-color: #009cad;
  background: #f0f8f9;
  transform: scale(1.05);
}

/* Check-in Button */
.dashboard2-checkin-btn {
  background: white;
  border: 3px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #009cad;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.dashboard2-checkin-btn:hover {
  background: #f0f8f9;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.15);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content-large {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.todo-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 200px;
}

.todo-empty-state p {
  margin: 0;
  color: #999;
  font-size: 1rem;
  font-weight: 500;
}

/* Loading State */
.todo-skeleton-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-title {
  height: 1.2rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 60%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-subtitle {
  height: 0.9rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 25%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-description {
  height: 0.85rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 45%;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

.skeleton-circle {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: #e0e0e0;
  animation: skeleton-pulse 8s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes skeleton-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
/* Onboarding V2 - Layout */
.onboarding-v2-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f8f9fa;
}

.onboarding-v2-header {
  background: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.onboarding-v2-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.onboarding-v2-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.onboarding-v2-sidebar {
  width: 250px;
  background: #009cad;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.onboarding-v2-nav {
  flex: 1;
}

.onboarding-v2-nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.onboarding-v2-nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-v2-nav-section a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.onboarding-v2-nav-section a:hover {
  background: rgba(0, 156, 173, 0.7);
  color: white;
}

.onboarding-v2-nav-section a.active {
  background: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* User Section */
.onboarding-v2-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.onboarding-v2-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.onboarding-v2-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-v2-user-info {
  flex: 1;
  min-width: 0;
}

.onboarding-v2-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onboarding-v2-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Main Content */
.onboarding-v2-main {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.onboarding-v2-content {
  padding: 2rem;
}

.onboarding-v2-header-section {
  margin-bottom: 2rem;
}

.onboarding-v2-header-section h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.8rem;
  font-weight: 700;
}

.onboarding-v2-subtitle {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Search Bar */
.onboarding-v2-search-bar {
  margin-bottom: 2rem;
}

.onboarding-v2-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.onboarding-v2-search-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 1px 8px rgba(0, 156, 173, 0.15);
}

/* Two-column layout */
.onboarding-v2-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

/* Filters Sidebar */
.onboarding-v2-filters {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 0;
}

.onboarding-v2-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.onboarding-v2-filters-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1rem;
  font-weight: 700;
}

.onboarding-v2-clear-filters {
  background: none;
  border: none;
  color: #009cad;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.onboarding-v2-clear-filters:hover {
  color: #001f3d;
}

.onboarding-v2-filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.onboarding-v2-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.onboarding-v2-filter-section h4 {
  margin: 0 0 0.75rem 0;
  color: #001f3d;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.onboarding-v2-filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding-v2-filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  transition: color 0.2s ease;
}

.onboarding-v2-filter-label:hover {
  color: #001f3d;
}

.onboarding-v2-filter-label input {
  cursor: pointer;
  accent-color: #009cad;
}

/* Results Area */
.onboarding-v2-results {
  flex: 1;
}

.onboarding-v2-results-header {
  margin-bottom: 1.5rem;
}

.onboarding-v2-results-count {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.onboarding-v2-loading {
  background: white;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-v2-loading-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.onboarding-v2-loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #009cad, transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.onboarding-v2-no-results {
  background: white;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  color: #999;
}

/* Items Grid */
.onboarding-v2-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.onboarding-v2-item-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.onboarding-v2-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.15);
  transform: translateY(-2px);
}

.onboarding-v2-item-card.completed {
  background: linear-gradient(135deg, #f0fff4 0%, #e0ffe6 100%);
  border: 1px solid #a8e6c1;
}

.onboarding-v2-item-header {
  margin-bottom: 1rem;
}

.onboarding-v2-item-header h3 {
  margin: 0 0 0.75rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.onboarding-v2-item-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.onboarding-v2-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.onboarding-v2-badge.priority-required {
  background: #ffe6e6;
  color: #cc0000;
}

.onboarding-v2-badge.priority-recommended {
  background: #fff4e6;
  color: #ff8c00;
}

.onboarding-v2-badge.priority-optional {
  background: #e6f3f9;
  color: #0066cc;
}

.onboarding-v2-badge.category {
  background: #f0f0f0;
  color: #666;
}

.onboarding-v2-item-description {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.onboarding-v2-item-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
}

.onboarding-v2-time {
  color: #999;
}

.onboarding-v2-action-btn {
  background: white;
  border: 2px solid #009cad;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #009cad;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.onboarding-v2-action-btn:hover {
  background: #009cad;
  color: white;
}

.onboarding-v2-action-btn.secondary {
  background: #e6f3f9;
  border: 2px solid #009cad;
  color: #009cad;
  margin-top: 0.5rem;
}

.onboarding-v2-action-btn.secondary:hover {
  background: #009cad;
  color: white;
}

/* Completion Info */
.onboarding-v2-completion-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #e8f8f5;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.onboarding-v2-completion-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #00a080;
  font-size: 0.95rem;
}

.onboarding-v2-completion-date {
  font-size: 0.85rem;
  color: #00a080;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
  .onboarding-v2-layout {
    grid-template-columns: 180px 1fr;
  }

  .onboarding-v2-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .onboarding-v2-layout {
    grid-template-columns: 1fr;
  }

  .onboarding-v2-filters {
    position: relative;
    top: auto;
  }

  .onboarding-v2-items-grid {
    grid-template-columns: 1fr;
  }
}

/* Poof Animation */
.onboarding-v2-item-card.animating {
  animation: poofDisappear 0.6s ease-out forwards;
}

@keyframes poofDisappear {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}
/* History Page Container */
.history-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f8f9fa;
}

.history-header {
  background: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.history-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.history-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Main Content */
.history-main {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.history-content {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.history-header-section {
  margin-bottom: 2rem;
}

.history-header-section h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.8rem;
  font-weight: 700;
}

.history-subtitle {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* Tab Switcher */
.history-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.history-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.history-tab:hover {
  color: #009cad;
}

.history-tab.active {
  color: #009cad;
  border-bottom-color: #009cad;
}

/* Search Bar */
.history-search-bar {
  margin-bottom: 2rem;
}

.history-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 2px solid #009cad;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.history-search-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.history-search-input::placeholder {
  color: #999;
}

/* Controls */
.history-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.history-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-sort label {
  font-weight: 600;
  color: #001f3d;
}

.history-sort-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #009cad;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  background: white;
  color: #001f3d;
}

.history-sort-select:hover {
  border-color: #007a8c;
}

/* Results Area */
.history-results {
  background: white;
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 2rem;
  min-height: 300px;
}

.history-loading,
.history-empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1rem;
}

/* Items List */
.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  padding: 1.5rem;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #009cad;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.history-item:hover {
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.1);
  border-left-color: #007a8c;
}

.history-item.checkin-item {
  border-left-color: #0066cc;
}

.history-item.checkin-item:hover {
  border-left-color: #004999;
}

.history-item.win-item {
  border-left-color: #009cad;
}

.history-item.win-item:hover {
  border-left-color: #007a8c;
}

/* Win Item Horizontal Layout */
.win-item-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.win-left {
  flex: 0 0 180px;
}

.win-left-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.win-left-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1rem;
  font-weight: 700;
}

.win-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.win-right .history-item-date {
  align-self: flex-start;
}

.win-right .history-item-content {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.history-item-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1rem;
  font-weight: 700;
}

.history-item-date {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
  margin: 0;
}

.history-item-content {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* History Item Title and Badges */
.history-item-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.history-item-title h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1rem;
  font-weight: 700;
}

/* Check-in Mood */
.checkin-mood {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #e3f2fd;
  color: #0066cc;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Win Category */
.win-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e8e8e8;
  color: #333;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Check-in Tags */
.checkin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkin-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Win Tags */
.win-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.win-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e8e8e8;
  color: #333;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Check-in Acknowledged */
.checkin-acknowledged {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #f0fdf4;
  color: #166534;
  border-left: 3px solid #22c55e;
  font-size: 0.85rem;
  border-radius: 4px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 2px solid #009cad;
}

.modal-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #001f3d;
}

.modal-body {
  padding: 2rem;
}

.modal-category {
  margin-bottom: 1rem;
}

.modal-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .history-content {
    padding: 1rem;
  }

  .history-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
.user-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background-color: #f5f5f5;
}

/* Header */
.user-header {
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.user-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.user-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.user-header .user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 250px;
  background-color: #009cad;
  color: white;
  padding: 1.5rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-menu {
  flex: 1;
}

.nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-menu li a:hover {
  background-color: rgba(0, 156, 173, 0.7);
  text-shadow: 0 0 8px rgba(248, 103, 24, 0.3);
  box-shadow: inset 4px 0 0 #f86718;
  color: white;
}

.nav-menu li a.active {
  background-color: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* Sidebar User Section */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-sidebar {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-sidebar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.user-main {
  flex: 1;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  overflow-y: auto;
}

.user-page {
  max-width: 1000px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.back-btn {
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
}

.back-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.page-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 2rem;
  flex: 1;
  text-align: center;
}

/* Tab Navigation */
.user-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #009cad;
}

.tab-btn.active {
  color: #009cad;
  border-bottom-color: #009cad;
}

/* Tab Content */
.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Card */
.profile-card {
  background: white;
  color: #001f3d;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}

.profile-info h3 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.5rem;
}

.role-label {
  margin: 0 0 0.25rem 0;
  color: #f86718;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.email-label {
  margin: 0;
  color: #999;
  font-size: 0.95rem;
}

/* Settings Card */
.settings-card {
  background: white;
  color: #001f3d;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

/* Security Card */
.security-card {
  background: white;
  color: #001f3d;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-details.full-width {
  grid-template-columns: 1fr;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.detail-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #555;
  font-size: 0.95rem;
}

.detail-group input.read-only {
  background-color: #f0f0f0;
  cursor: not-allowed;
  color: #666;
}

.detail-group input.editable {
  background-color: white;
  border-color: #009cad;
  cursor: text;
  color: #333;
}

.detail-group input.editable:focus {
  outline: none;
  border-color: #007a8a;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.help-text {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Section Divider */
.section-divider {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.section-divider:first-child {
  padding-top: 0;
}

.section-divider h4 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.1rem;
}

.section-description {
  margin: 0.5rem 0 0 0;
  color: #999;
  font-size: 0.9rem;
}

/* Buttons */
.save-btn,
.request-btn {
  padding: 0.75rem 2rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
  margin-right: 1rem;
}

.save-btn:hover,
.request-btn:hover {
  background-color: #007a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.request-btn {
  background-color: #f86718;
}

.request-btn:hover {
  background-color: #d55500;
  box-shadow: 0 4px 12px rgba(248, 103, 24, 0.3);
}

/* Account Info */
.account-info {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  color: #333;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #333;
}

.info-value {
  color: #666;
}

/* Request Buttons Container */
.request-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Settings Group */
.settings-group {
  margin-bottom: 1.5rem;
}

.setting-item {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
  color: #333;
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.setting-item h5 {
  margin: 0 0 0.25rem 0;
  color: #001f3d;
  font-size: 0.95rem;
}

.setting-item p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.preference-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  font-size: 0.9rem;
  min-width: 150px;
}

.preference-select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

/* Security Sections */
.security-section {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-color: #f9f9f9;
  color: #333;
}

.security-info {
  margin-bottom: 1rem;
}

.info-text {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

.status-inactive {
  color: #dc3545;
  font-weight: 600;
}

.status-active {
  color: #28a745;
  font-weight: 600;
}

/* Sessions List */
.sessions-list {
  margin-bottom: 1.5rem;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  margin-bottom: 1rem;
}

.session-info {
  flex: 1;
}

.session-device {
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.5rem;
}

.session-location,
.session-time {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.session-btn {
  padding: 0.5rem 1rem;
  background-color: #e0e0e0;
  color: #666;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Sign Out All Button */
.sign-out-all-btn {
  padding: 0.75rem 2rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.sign-out-all-btn:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Logout Button */
.logout-btn {
  padding: 0.75rem 2rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.logout-btn:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Login History */
.login-history {
  margin-top: 1rem;
}

.history-item {
  padding: 1rem;
  border-left: 3px solid #009cad;
  background-color: #f9f9f9;
  color: #333;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.history-time {
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.history-device {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.history-status {
  color: #28a745;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #009cad;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .profile-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .user-main {
    margin-left: 0;
    padding: 1rem;
  }

  .user-header .header-content {
    margin-left: 0;
  }

  .page-header {
    flex-direction: column;
  }

  .page-header h2 {
    order: 1;
    flex: none;
  }

  .back-btn {
    order: 0;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .user-tabs {
    flex-wrap: wrap;
  }

  .profile-card,
  .settings-card,
  .security-card {
    padding: 1.5rem;
  }

  .detail-group input {
    font-size: 16px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.25rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 4px;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #000;
}

.modal form {
  padding: 1.5rem;
}

.confirmation-content {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.confirmation-content p {
  margin: 0.75rem 0;
  color: #333;
  font-size: 0.95rem;
}

.confirmation-content p.info-text {
  color: #666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #001f3d;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.cancel-btn {
  padding: 0.75rem 1.5rem;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.submit-btn {
  padding: 0.75rem 1.5rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover:not(:disabled) {
  background-color: #007a89;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Message Alert */
.message-alert {
  padding: 1rem;
  margin-top: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Profile Form Section */
.profile-form-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 600px;
}

.profile-form-section h2 {
  margin: 0 0 1.5rem 0;
  color: #001f3d;
  font-size: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.save-button {
  background: white;
  border: 2px solid #009cad;
  color: #009cad;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.save-button:hover {
  background: #009cad;
  color: white;
}

.success-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.baseline-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.baseline-header {
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-content h1 {
  margin: 0;
  font-size: 1.5rem;
}

.baseline-main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.baseline-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.baseline-page h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.5rem;
}
  background-color: #fff4e6;
  border-left: 4px solid #f86718;
  padding: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  color: #333;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #001f3d;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #f9f9f9;
}

.baseline-section {
  margin-bottom: 2.5rem;
}

.baseline-section h3 {
  color: #001f3d;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  border-bottom: 2px solid #009cad;
  padding-bottom: 0.5rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag-button {
  padding: 0.6rem 1rem;
  border: 2px solid #ddd;
  border-radius: 24px;
  background-color: white;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag-button:hover {
  border-color: #009cad;
  background-color: #f0f8f9;
}

.tag-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background-color: #f5f5f5;
  color: #999;
}

.tag-button:disabled:hover {
  border-color: #ddd;
  background-color: #f5f5f5;
}

.tag-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
}

.tag-button:disabled.selected {
  background-color: #b3dfe8;
  border-color: #b3dfe8;
  opacity: 0.7;
}

.scale-info {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.scale-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.scale-item label {
  display: block;
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.3rem;
}

.scale-description {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}

.scale-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scale-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: white;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-button:hover {
  border-color: #009cad;
  background-color: #f0f8f9;
}

.scale-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background-color: #f5f5f5;
  color: #999;
}

.scale-button:disabled:hover {
  border-color: #ddd;
  background-color: #f5f5f5;
}

.scale-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
}

.scale-button:disabled.selected {
  background-color: #b3dfe8;
  border-color: #b3dfe8;
  opacity: 0.7;
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

textarea:disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #ddd;
}

.save-button {
  background-color: #001f3d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.save-button:hover {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

@media (max-width: 768px) {
  .baseline-main {
    padding: 1rem;
  }

  .baseline-content {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .scale-buttons {
    justify-content: flex-start;
  }

  .button-group {
    gap: 0.5rem;
  }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
  gap: 1rem;
}

.back-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #009cad;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
}

.back-btn:hover {
  color: #001f3d;
  transform: translateX(-4px);
}

.page-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.5rem;
  flex: 1;
  text-align: center;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.3rem;
}

.modal-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-leave {
  background-color: #f86718;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-leave:hover {
  background-color: #d55500;
  box-shadow: 0 2px 8px rgba(248, 103, 24, 0.3);
}

.btn-stay {
  background-color: #001f3d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-stay:hover {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

.success-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Half-Term Container */
.halfterm-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.halfterm-header {
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-content h1 {
  margin: 0;
  font-size: 1.5rem;
}

.halfterm-main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.halfterm-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.halfterm-page h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.5rem;
}

.info-box {
  background-color: #fff4e6;
  border-left: 4px solid #f86718;
  padding: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  color: #333;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #001f3d;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #f9f9f9;
}

.form-group select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Half-Term Section */
.halfterm-section {
  margin-bottom: 2rem;
}

.halfterm-section h3 {
  color: #001f3d;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  border-bottom: 3px solid #009cad;
  padding-bottom: 0.5rem;
}

.scale-description {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.scale-group {
  margin-bottom: 1.5rem;
}

.scale-label {
  margin-bottom: 0.75rem;
}

.scale-label strong {
  display: block;
  color: #001f3d;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.scale-hint {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

.scale-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scale-button {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: white;
  color: #001f3d;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-button:hover {
  border-color: #009cad;
  background-color: #f0f8f9;
}

.scale-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.3);
}

.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag-button {
  border: 2px solid #001f3d;
  background-color: white;
  color: #001f3d;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tag-button:hover {
  background-color: #f0f8f9;
}

.tag-button.selected {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.save-button {
  background-color: #001f3d;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.save-button:hover {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
  gap: 1rem;
}

.back-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #009cad;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
}

.back-btn:hover {
  color: #001f3d;
  transform: translateX(-4px);
}

.page-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.5rem;
  flex: 1;
  text-align: center;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.3rem;
}

.modal-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-leave {
  background-color: #f86718;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-leave:hover {
  background-color: #d55500;
  box-shadow: 0 2px 8px rgba(248, 103, 24, 0.3);
}

.btn-stay {
  background-color: #001f3d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-stay:hover {
  background-color: #003d6b;
  box-shadow: 0 2px 8px rgba(0, 31, 61, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .halfterm-main {
    padding: 1rem;
  }

  .halfterm-content {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .scale-buttons {
    justify-content: flex-start;
  }

  .button-group {
    gap: 0.5rem;
  }
}

.success-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Support Hub - Layout */
.support-hub-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f8f9fa;
}

.support-hub-header {
  background: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.support-hub-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.support-hub-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.support-hub-sidebar {
  width: 250px;
  background: #009cad;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.support-hub-nav {
  flex: 1;
}

.support-hub-nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.support-hub-nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-hub-nav-section a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.support-hub-nav-section a:hover {
  background: rgba(0, 156, 173, 0.7);
  color: white;
}

.support-hub-nav-section a.active {
  background: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* User Section */
.support-hub-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.support-hub-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-hub-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.support-hub-user-info {
  flex: 1;
  min-width: 0;
}

.support-hub-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-hub-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Main Content */
.support-hub-main {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.support-hub-content {
  padding: 2rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.8rem;
  font-weight: 700;
}

.support-hub-subtitle {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.support-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.support-category-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.support-category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.15);
  border-color: #009cad;
  transform: translateY(-2px);
}

.support-category-card h3 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
}

.support-category-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
/* Support Detail - Layout */
.support-detail-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f8f9fa;
}

.support-detail-header {
  background: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.support-detail-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.support-detail-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.support-detail-sidebar {
  width: 250px;
  background: #009cad;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.support-detail-nav {
  flex: 1;
}

.support-detail-nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.support-detail-nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-detail-nav-section a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.support-detail-nav-section a:hover {
  background: rgba(0, 156, 173, 0.7);
  color: white;
}

.support-detail-nav-section a.active {
  background: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* User Section */
.support-detail-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.support-detail-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-detail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.support-detail-user-info {
  flex: 1;
  min-width: 0;
}

.support-detail-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-detail-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Main Content */
.support-detail-main {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.support-detail-content {
  padding: 2rem;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header .back-btn {
  background: white;
  border: 2px solid #001f3d;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #001f3d;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.page-header .back-btn:hover {
  background: #001f3d;
  color: white;
}

.page-header h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  color: #001f3d;
  font-size: 1.6rem;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #009cad;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #001f3d;
  text-decoration: underline;
}

.support-detail-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Accordion Styles */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.accordion-header:hover {
  background: #f8f9fa;
  border-color: #009cad;
}

.accordion-header.expanded {
  background: #f0f8f9;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
  color: #001f3d;
  flex: 1;
}

.accordion-icon {
  font-size: 1.5rem;
  color: #009cad;
  font-weight: 300;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  background: white;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}
.shared-strategies-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.shared-strategies-header {
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shared-strategies-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.shared-strategies-wrapper {
  display: flex;
  flex: 1;
  height: 100%;
}

.shared-strategies-main {
  flex: 1;
  overflow-y: auto;
}

.shared-strategies-content {
  width: 100%;
  background-color: white;
  padding: 2rem 2rem 2rem 2rem;
  margin-top: 1.5rem;
}

.strategies-header {
  margin-bottom: 2.5rem;
}

.strategies-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

.strategies-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.strategies-error {
  background-color: #fee;
  border-left: 4px solid #f66;
  padding: 1rem;
  border-radius: 6px;
  color: #c00;
  text-align: center;
  margin: 2rem 0;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .strategies-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-card {
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.5rem;
  background-color: #fafafa;
  transition: all 0.2s ease;
}

.strategy-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.strategy-card h2,
.strategy-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.2rem 0;
  color: #1a1a1a;
}

.provision-card h2 {
  color: #0066cc;
}

.provision-card h3 {
  color: #0066cc;
}

.home-card h2 {
  color: #5c3fa3;
}

.home-card h3 {
  color: #5c3fa3;
}

.barriers-card h2 {
  color: #cc8800;
}

.barriers-card h3 {
  color: #cc8800;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 60px;
  align-items: flex-start;
}

.tag {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.provision-tag {
  background-color: #d4e6ff;
  color: #0066cc;
  border-color: #a3d5ff;
}

.provision-tag:hover {
  background-color: #b3d9ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.home-tag {
  background-color: #e6d9f0;
  color: #5c3fa3;
  border-color: #d4c1e6;
}

.home-tag:hover {
  background-color: #d9c1e6;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(92, 63, 163, 0.15);
}

.barrier-tag {
  background-color: #ffe6b3;
  color: #cc8800;
  border-color: #ffd966;
}

.barrier-tag:hover {
  background-color: #ffd966;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(204, 136, 0, 0.15);
}

.no-strategies {
  color: #999;
  font-style: italic;
  margin: 0;
  font-size: 0.9rem;
}

.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 1rem;
}

.loading-full {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 1rem;
}

.back-button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.back-button:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.back-button:active {
  transform: scale(0.98);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #000;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.session-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.info-section {
  display: flex;
  flex-direction: column;
}

.info-section h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
}

.info-section p {
  margin: 0;
  font-size: 16px;
  color: #1a1a1a;
  font-weight: 500;
}

.session-time-display {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0099cc !important;
}

.session-date-display {
  font-size: 16px !important;
  color: #333 !important;
}

.staff-section,
.students-section {
  margin-bottom: 28px;
}

.staff-section h3,
.students-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f8f8f8;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.member-item:hover {
  background-color: #f0f0f0;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.member-item.staff .member-avatar {
  background-color: #0099cc;
}

.member-item.student .member-avatar {
  background-color: #66bb6a;
}

.member-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .session-info-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
  }
}
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* Page animations */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton Loading */
@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.skeleton {
  background-color: #e0e0e0;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-card {
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  height: 120px;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin: 0.25rem 0;
}

.skeleton-badge {
  height: 1.5rem;
  width: 80px;
  border-radius: 4px;
  display: inline-block;
}

.skeleton-flag-summary {
  height: 3rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.skeleton-record {
  padding: 1rem;
  border-left: 4px solid #e0e0e0;
  background-color: #fafafa;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.skeleton-record .skeleton-text {
  height: 1.2rem;
  margin-bottom: 0.5rem;
}

.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin-left: 250px;
  box-sizing: border-box;
}

.header-content h1 {
  margin: 0;
  font-size: 1.5rem;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 250px;
  background-color: #009cad;
  color: white;
  padding: 1.5rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-menu {
  flex: 1;
}

.nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  background-color: rgba(0, 156, 173, 0.7);
  text-shadow: 0 0 8px rgba(248, 103, 24, 0.3);
  box-shadow: inset 4px 0 0 #f86718;
  color: white;
}

.nav-menu a.active {
  background-color: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* Sidebar User Section */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-sidebar {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-sidebar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Dashboard Layout */
.dashboard-main {
  flex: 1;
  margin-left: 250px;
  margin-top: 60px;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  overflow: hidden;
  height: calc(100vh - 60px);
  display: flex;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  grid-template-areas:
    "schedule recent"
    "flagged recent";
  width: 100%;
  height: 100%;
}

/* Dashboard Sections */
.dashboard-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInSlideUp 0.5s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-section:nth-child(1) {
  grid-area: schedule;
  overflow: hidden;
  position: relative;
  min-height: 250px;
}

.dashboard-section:nth-child(2) {
  grid-area: flagged;
  max-height: 180px;
  overflow-y: auto;
  padding: 0;
}

.make-report-section {
  grid-area: flagged;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.make-report-button {
  flex: 1;
  background: linear-gradient(135deg, #009cad 0%, #007a8c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

.make-report-button:hover {
  background: linear-gradient(135deg, #007a8c 0%, #006a7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.make-report-button:active {
  transform: translateY(0);
}

.make-report-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.make-report-content {
  flex: 1;
  text-align: left;
}

.make-report-content h2 {
  margin: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.make-report-content p {
  margin: 0.5rem 0 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 400;
}

.make-report-arrow {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.make-report-button:hover .make-report-arrow {
  transform: translateX(4px);
}

.dashboard-section:nth-child(3) {
  grid-area: recent;
  overflow-y: auto;
}

.dashboard-section h2 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  user-select: none;
  margin-bottom: 0;
}

.section-header h2 {
  margin: 0;
  flex: 1;
}

.flag-count {
  background-color: #009cad;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 50px;
  text-align: center;
}

/* Timetable Grid */
.timetable-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-y: visible;
}

.timetable-card {
  background: linear-gradient(135deg, #009cad 0%, #007a88 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 100%;
}

.timetable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.session-time {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.session-subject {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.session-students {
  font-size: 0.8rem;
  opacity: 1;
  margin-bottom: 0.3rem;
}

.session-location {
  font-size: 0.8rem;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Scoped to dashboard timetable cards only - make text white */
.timetable-card .session-time {
  color: #ffffff !important;
}

.timetable-card .session-subject {
  color: #ffffff !important;
}

.timetable-card .session-students {
  color: #ffffff !important;
}

.timetable-card .session-location {
  color: #ffffff !important;
}

/* Session Status Badges */
.session-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.session-badge-now {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.session-badge-upcoming {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Flagged Students Section */
.flag-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #001f3d;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.flag-summary:hover {
  background-color: #f0f0f0;
  border-color: #009cad;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.15);
}

.toggle-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.flags-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flag-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.flag-badge.flag-amber {
  background-color: #f59e0b;
  color: white;
}

.flag-badge.flag-red {
  background-color: #ef4444;
  color: white;
}

.flag-badge.flag-green {
  background-color: #22c55e;
  color: white;
}

.menu-label {
  display: block;
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.menu-select {
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #001f3d;
  background-color: white;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23001f3d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.menu-select:hover {
  border-color: #009cad;
}

.menu-select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.menu-item-details {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #009cad;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.detail-row:last-child {
  margin-bottom: 1rem;
}

.detail-label {
  color: #666;
  font-weight: 500;
}

.detail-value {
  color: #001f3d;
  font-weight: 600;
}

.detail-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-badge.flag-amber {
  background-color: #f59e0b;
  color: white;
}

.detail-badge.flag-red {
  background-color: #ef4444;
  color: white;
}

.student-name {
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.flags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flag-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-amber {
  background-color: #f59e0b;
  color: white;
}

.flag-red {
  background-color: #ef4444;
  color: white;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: #009cad;
  color: white;
}

.btn-primary:hover {
  background-color: #007a88;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #001f3d;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
}

.view-all-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background-color: #007a88;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

/* Recent Records Section */
.recent-records {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.record-item {
  padding: 1rem;
  border-left: 4px solid #e0e0e0;
  background-color: #fafafa;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.record-item:hover {
  background-color: #f0f0f0;
  transform: translateX(4px);
  border-left-color: #009cad;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.record-student {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.record-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.record-badge.badge-green {
  background-color: #22c55e;
  color: white;
}

.record-badge.badge-amber {
  background-color: #f59e0b;
  color: white;
}

.record-badge.badge-red {
  background-color: #ef4444;
  color: white;
}

.record-badge.badge-neutral {
  background-color: #9ca3af;
  color: white;
}

.record-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.record-subject {
  font-size: 0.9rem;
  color: #555;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1rem;
}

/* Left Section - Chart */
.dashboard-left {
  display: none;
}

.chart-card {
  background: white;
  color: #001f3d;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInSlideUp 0.5s ease-out;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.chart-card h3 {
  margin: 0;
  color: #001f3d;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.date-filter {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.filter-btn {
  padding: 0.3rem 0.6rem;
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

.filter-btn.active {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
}

.custom-date-picker {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.date-input-group input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.date-input-group input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.apply-btn {
  padding: 0.5rem 1rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.apply-btn:hover {
  background-color: #007a88;
}

.chart-subtitle {
  color: #999;
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  margin: 0;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0.5rem 0 1rem 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  overflow: hidden;
}

.chart-container svg {
  outline: none;
  border: none;
}

.chart-container *:focus {
  outline: none;
}

.chart-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 550px;
  color: #999;
  font-size: 1rem;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.stat-value.reported {
  color: #f86718;
}

.stat-value.not-reported {
  color: #999;
}

.stat-value.total {
  color: #009cad;
}


/* Right Section - Action Cards (Legacy - Hidden) */
.dashboard-right {
  display: none;
}

.action-card {
  display: none;
}

.report-card {
  border-left: 4px solid #7c3aed;
}

.students-card:hover {
  border-left-color: #007a88;
}

.records-card:hover {
  border-left-color: #d55500;
}

.audit-card:hover {
  border-left-color: #52873b;
}

.report-card:hover {
  border-left-color: #6d28d9;
}

@media (max-width: 1200px) {
  .dashboard-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "flagged"
      "recent"
      "schedule";
  }

  .timetable-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    margin-left: 0;
    margin-top: 0;
    padding: 1rem;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-section {
    padding: 1.5rem;
  }

  .timetable-grid {
    grid-template-columns: 1fr;
  }

  .record-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar {
    position: static;
    width: 100%;
    top: auto;
  }
}

/* Full Page Flagged Menu */
.flagged-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}

.flagged-page-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.flagged-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: white;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.flagged-page-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.8rem;
}

.flagged-page-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.flagged-page-close:hover {
  color: #001f3d;
  background-color: #e0e0e0;
}

.flagged-page-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  scrollbar-gutter: stable;
}

.flagged-page-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #f59e0b;
  transition: all 0.3s ease;
  animation: fadeInSlideUp 0.4s ease-out;
}

.flagged-page-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.page-item-student-name {
  margin: 0 0 1.5rem 0;
  color: #001f3d;
  font-size: 1.6rem;
  font-weight: 700;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  display: block;
  line-height: 1.4;
  word-wrap: break-word;
}

.page-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.page-item-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.4rem;
  font-weight: 600;
}

.page-item-records {
  margin-bottom: 1.5rem;
}

.page-item-or {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.page-item-details {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #009cad;
  margin-top: 1.5rem;
}

/* Modal styles for full-page view */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInSlideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.modal-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #001f3d;
  background-color: #e0e0e0;
  border-radius: 50%;
}

.modal-body {
  padding: 1.5rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section:last-of-type {
  margin-bottom: 1.5rem;
}

.modal-label {
  display: block;
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.modal-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #001f3d;
  background-color: #f9f9f9;
  transition: all 0.2s ease;
}

.modal-select:hover {
  border-color: #009cad;
  background-color: white;
}

.modal-select:focus {
  outline: none;
  border-color: #009cad;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.record-detail {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #009cad;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: #666;
  font-weight: 500;
}

.detail-value {
  color: #001f3d;
  font-weight: 600;
}

.detail-value.flag-amber {
  background-color: #f59e0b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.detail-value.flag-red {
  background-color: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* Old styles for compatibility */
.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
}

.placeholder-cards {
  display: none;
}

/* Flagged Students Grid */
.flagged-students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flagged-card {
  background: white;
  border: 2px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.flagged-card:hover {
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.2);
  border-color: #007a8c;
  transform: translateY(-2px);
}

.flagged-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flagged-card h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.flagged-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #009cad;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.flag-count-number {
  font-size: 1.2rem;
  font-weight: 700;
}

.flag-text {
  font-size: 0.85rem;
}

.skeleton-flagged-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.skeleton-flagged-card .skeleton-text {
  width: 150px;
  height: 1rem;
}

.skeleton-flagged-card .skeleton-badge {
  width: 100px;
  height: 2rem;
}

/* Checkin detail styles */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-tag {
  background: #e0f2f1;
  color: #009cad;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.flag-checkin {
  background: #fef3c7 !important;
  color: #b45309 !important;
}
.student-container {
  display: flex;
  min-height: 100vh;
  background-color: #f5f5f5;
  scrollbar-gutter: stable;
}

/* Page animations */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.student-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.student-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin-left: 250px;
  box-sizing: border-box;
}

.student-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 250px;
  background-color: #009cad;
  color: white;
  padding: 1.5rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-menu {
  flex: 1;
}

.nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-menu li a:hover {
  background-color: rgba(0, 156, 173, 0.7);
  text-shadow: 0 0 8px rgba(248, 103, 24, 0.3);
  box-shadow: inset 4px 0 0 #f86718;
  color: white;
}

.nav-menu li a.active {
  background-color: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* Sidebar User Section */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-sidebar {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-sidebar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.student-main {
  flex: 1;
  margin-left: 250px;
  margin-top: 60px;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.student-page {
  max-width: 1400px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.header-title h2 {
  margin: 0 0 0.75rem 0;
  color: #001f3d;
  font-size: 2rem;
  line-height: 1.2;
}

/* LOCKED POSITIONING - DO NOT MODIFY */
.header-active h2 {
  transform: translateX(-40px) !important;
}

.header-deleted h2 {
  transform: translateX(-20px) !important;
}

.header-students {
  transform: translateX(-40px) !important;
}

.header-title p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.subtitle {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Action Cards Section */
.action-cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background: white;
  color: #001f3d;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 3px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeInSlideUp 0.5s ease-out;
  min-height: 160px;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #009cad, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 156, 173, 0.15);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  object-fit: contain;
}

.action-card h3 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 600;
}

.action-card p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
}

.card-hover-text {
  opacity: 0;
  color: #009cad;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.action-card:hover .card-hover-text {
  opacity: 1;
}

/* Card-specific styling */
.new-report-card {
  border-left: 4px solid #009cad;
}

.quick-log-card {
  border-left: 4px solid #f86718;
}

.new-report-card:hover {
  border-left-color: #007a8a;
}

.quick-log-card:hover {
  border-left-color: #d55500;
}

.add-student-btn {
  padding: 0.75rem 1.5rem;
  background-color: #009cad;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.add-student-btn:hover {
  background-color: #007a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

/* Filters Section */
.filters-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: white;
  color: #333;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.search-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #009cad;
}

.results-info {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: auto;
}

/* Students Table */
.students-table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  animation: fadeIn 0.4s ease-out;
  table-layout: fixed;
}

.students-table tbody tr {
  animation: fadeIn 0.4s ease-out;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.record-row {
  cursor: pointer;
}

.students-table tbody tr:hover {
  background-color: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left-color: #667eea;
  transform: translateY(-2px);
}

.students-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.students-table th {
  padding: 1rem;
  text-align: left;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.students-table th:nth-child(1) {
  width: 40%;
  text-align: left;
}

.students-table th:nth-child(2) {
  width: 40%;
  text-align: left;
}

.students-table th:nth-child(3) {
  width: 20%;
  text-align: center;
}

.students-table th.sortable:hover {
  background-color: #f0f0f0;
}

.sort-icon {
  margin-left: 0.5rem;
  opacity: 0.6;
  font-size: 0.75rem;
}

.student-row {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.student-row:hover {
  background-color: #f9f9f9;
}

.students-table td {
  padding: 1rem;
  color: #555;
  box-sizing: border-box;
  width: 25%;
}

.students-table td:nth-child(1) {
  width: 40%;
  text-align: left;
}

.students-table td:nth-child(2) {
  width: 40%;
  text-align: left;
}

.students-table td:nth-child(3) {
  width: 20%;
  text-align: center;
}

.name-cell {
  width: 40%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.age-cell {
  width: 20%;
  text-align: center;
  font-weight: 500;
  color: #009cad;
}

.year-group-cell {
  width: 20%;
  text-align: center;
  font-weight: 500;
  color: #f86718;
}

.status-cell {
  width: 20%;
  text-align: center;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.student-name {
  display: flex;
  flex-direction: column;
}

.full-name {
  font-weight: 600;
  color: #001f3d;
}

.student-id {
  font-size: 0.85rem;
  color: #999;
}

.grade-cell {
  font-weight: 500;
  color: #f86718;
}

.email-cell {
  color: #666;
  font-size: 0.9rem;
}

.status-cell {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
}

.status-absent {
  background-color: #fff3cd;
  color: #856404;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  transform: scale(1.1);
}

.view-btn:hover {
  background-color: #009cad;
}

.icon-btn {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.edit-btn:hover {
  background-color: #f86718;
}

.delete-btn:hover {
  background-color: #dc3545;
}

/* Empty State */
.empty-state,
.loading-state {
  padding: 3rem 2rem;
  text-align: center;
  color: #999;
}

.empty-state p {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #666;
}

.empty-state span {
  display: block;
  font-size: 0.9rem;
}

/* Stats Section */
.student-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #009cad;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .results-info {
    margin-left: 0;
  }

  .student-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .student-main {
    margin-left: 0;
    padding: 1rem;
  }

  .student-header .header-content {
    margin-left: 0;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .add-student-btn {
    width: 100%;
  }

  .students-table {
    font-size: 0.85rem;
  }

  .students-table th,
  .students-table td {
    padding: 0.75rem 0.5rem;
  }

  .student-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .actions-cell {
    gap: 0.25rem;
  }

  .action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Badge styles for session colours */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 80px;
  text-align: center;
}

.badge-green {
  background-color: #22c55e;
  color: #fff;
}

.badge-amber {
  background-color: #f59e0b;
  color: #fff;
}

.badge-red {
  background-color: #ef4444;
  color: #fff;
}

.badge-neutral {
  background-color: #9ca3af;
  color: #fff;
}
.student-profile-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.3s ease-out;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.form-section h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #009cad;
  padding-bottom: 1rem;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 4px rgba(0, 156, 173, 0.15);
  background-color: #f8fafb;
  transform: translateY(-2px);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
  border-color: #ddd;
}

.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus,
.form-group select.input-error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
  animation: slideIn 0.2s ease-out;
}

.info-text {
  color: #009cad;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
  animation: slideIn 0.2s ease-out;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  margin-top: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #efefef;
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-delete {
  background-color: #fee2e2;
  color: #dc2626;
  border: 2px solid #fca5a5;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.btn-delete:hover:not(:disabled) {
  background-color: #fecaca;
  border-color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Support Passport */
.section-help-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 1.5rem 0;
  font-style: normal;
  line-height: 1.5;
}

.passport-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.passport-category {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.passport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.passport-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0;
  border-bottom: none;
}

.passport-title.blue {
  color: #1e40af;
}

.passport-title.amber {
  color: #b45309;
}

.passport-title.red {
  color: #991b1b;
}

.passport-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.passport-item-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.passport-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background-color: white;
  transition: all 0.2s ease;
}

.passport-input::placeholder {
  color: #999;
  font-size: 0.85rem;
}

.passport-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
  background-color: #f8fafb;
}

.passport-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
  border-color: #ddd;
}

.add-item-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-item-btn:hover:not(:disabled) {
  background: #f0f4f8;
  border-color: #9ca3af;
}

.add-item-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
}

.remove-item-btn {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.remove-item-btn:hover:not(:disabled) {
  background: #fecaca;
  border-color: #f87171;
}

.remove-item-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .passport-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .add-item-btn {
    width: 100%;
  }
}
.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.confirmation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  max-width: 450px;
  transform: translate(-50%, -50%);
  z-index: 1001;
  animation: fadeInModal 0.3s ease-out;
}

.confirmation-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.confirmation-content h2 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.5rem;
  font-weight: 700;
}

.confirmation-content p {
  margin: 0 0 2rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 120px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  background-color: #efefef;
  border-color: #999;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  background-color: #c82333;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .confirmation-content {
    padding: 1.5rem;
  }

  .confirmation-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}
.profile-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.profile-page-header {
  background-color: #001f3d;
  color: white;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid #009cad;
  animation: slideDown 0.3s ease-out;
}

.back-button {
  background: none;
  border: none;
  color: #009cad;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  width: fit-content;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.back-button:hover:not(:disabled) {
  color: #7ce8f5;
  transform: translateX(-4px);
}

.back-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-page-header h1 {
  margin: 0;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.profile-page-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
  width: 100%;
}

.form-wrapper {
  width: 100%;
  background: white;
  border-radius: 0;
  padding: 3rem;
  box-shadow: none;
  animation: fadeInSlideUp 0.5s ease-out;
  min-height: auto;
  box-sizing: border-box;
}

.error-banner {
  background-color: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease-out;
}

.error-message {
  text-align: center;
  color: #dc3545;
  font-size: 1.1rem;
  padding: 2rem;
}

/* Form styling enhancements */
.student-profile-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #009cad;
  padding-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 4px rgba(0, 156, 173, 0.15);
  background-color: #f8fafb;
  transform: translateY(-2px);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
  border-color: #ddd;
}

.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus,
.form-group select.input-error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.info-text {
  color: #009cad;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  margin-top: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #efefef;
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
.profile-page-content::-webkit-scrollbar {
  width: 8px;
}

.profile-page-content::-webkit-scrollbar-track {
  background: transparent;
}

.profile-page-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.profile-page-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Responsive */
@media (max-width: 1024px) {
  .profile-page-content {
    padding: 2rem 1rem;
  }

  .form-wrapper {
    padding: 2rem;
    max-width: 100%;
  }

  .profile-page-header h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .profile-page-container {
    min-height: auto;
  }

  .profile-page-header {
    padding: 1.5rem;
  }

  .profile-page-header h1 {
    font-size: 1.5rem;
  }

  .profile-page-content {
    padding: 1rem;
  }

  .form-wrapper {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
.detail-page-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f8f9fa;
}

.detail-page-header {
  background: linear-gradient(135deg, #001f3d 0%, #002847 100%);
  color: white;
  padding: 1.5rem 3rem;
  border-bottom: 3px solid #009cad;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s ease-out;
}

.header-title {
  display: flex;
  align-items: center;
}

.detail-page-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.back-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
}

.back-button:hover:not(:disabled) {
  transform: translateX(-4px);
  color: #009cad;
}

.back-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.detail-page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 3rem;
}

.error-banner {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Tabs */
.tabs-container {
  background: white;
  margin-bottom: 0;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #666;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab:hover:not(.active) {
  color: #009cad;
}

.tab.active {
  color: #009cad;
  border-bottom-color: #009cad;
}

/* Tab Content */
.tab-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
}

.profile-tab {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.profile-header h2 {
  margin: 0;
  color: #001f3d;
  font-size: 1.3rem;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #009cad;
  padding-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.info-box.full-width {
  grid-column: 1 / -1;
}

.info-box label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-word;
  white-space: pre-wrap;
  min-height: 1.5rem;
}

.info-value.parent-pin {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #009cad;
  background-color: #f0fafb;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #009cad;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.info-value.parent-pin:hover {
  background-color: #e8f7f9;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.1);
}

/* Tab Placeholders */
.tab-placeholder {
  text-align: center;
  padding: 3rem 2rem;
}

.tab-placeholder h3 {
  color: #001f3d;
  margin-bottom: 1rem;
}

.tab-placeholder p {
  color: #666;
  font-size: 0.95rem;
}

/* Edit Form Wrapper */
.form-wrapper {
  width: 100%;
  background: white;
  border-radius: 0;
  padding: 3rem;
  box-shadow: none;
  animation: fadeInSlideUp 0.5s ease-out;
  min-height: auto;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Support Passport View */
.passport-view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.passport-view-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.passport-view-title {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.passport-view-title.blue {
  color: #1e40af;
  border-bottom: 3px solid #1e40af;
  padding-bottom: 0.5rem;
}

.passport-view-title.amber {
  color: #b45309;
  border-bottom: 3px solid #b45309;
  padding-bottom: 0.5rem;
}

.passport-view-title.red {
  color: #991b1b;
  border-bottom: 3px solid #991b1b;
  padding-bottom: 0.5rem;
}

.passport-view-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.passport-view-item {
  display: inline-block;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #333;
}

.passport-view-empty {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-page-header {
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
  }

  .detail-page-header h1 {
    font-size: 1.4rem;
  }

  .detail-page-content {
    padding: 1.5rem;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Records Tab Styles */
.records-tab {
  animation: fadeIn 0.3s ease-out;
}

.records-tab-header {
  margin-bottom: 1.5rem;
}

.records-tab-header h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.records-subtitle {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.records-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.records-mini-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.records-mini-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.records-mini-table th {
  padding: 1rem;
  text-align: left;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.records-mini-table th:nth-child(1) {
  width: 25%;
  text-align: left;
}

.records-mini-table th:nth-child(2) {
  width: 25%;
  text-align: center;
}

.records-mini-table th:nth-child(3) {
  width: 25%;
  text-align: left;
}

.records-mini-table th:nth-child(4) {
  width: 25%;
  text-align: left;
}

.records-mini-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.records-mini-table tbody tr.clickable-row:hover {
  background-color: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left-color: #667eea;
  transform: translateY(-1px);
}

.records-mini-table td {
  padding: 1rem;
  color: #555;
  box-sizing: border-box;
}

.records-mini-table td:nth-child(1) {
  width: 25%;
  text-align: left;
}

.records-mini-table td:nth-child(2) {
  width: 25%;
  text-align: center;
}

.records-mini-table td:nth-child(3) {
  width: 25%;
  text-align: left;
}

.records-mini-table td:nth-child(4) {
  width: 25%;
  text-align: left;
}

.notes-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-message {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1rem;
}

/* Badge styles for records tab */
.records-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: auto;
  text-align: center;
  white-space: nowrap;
}

.records-badge.badge-green {
  background-color: #22c55e;
  color: #fff;
}

.records-badge.badge-amber {
  background-color: #f59e0b;
  color: #fff;
}

.records-badge.badge-red {
  background-color: #ef4444;
  color: #fff;
}

.records-badge.badge-neutral {
  background-color: #9ca3af;
  color: #fff;
}

/* Record Detail View (within student profile) */
.record-detail-view {
  animation: fadeIn 0.3s ease-out;
}

.back-to-records-btn {
  background: transparent;
  border: none;
  color: #667eea;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.back-to-records-btn:hover {
  color: #5568d3;
  transform: translateX(-4px);
}

.record-detail-header {
  background: #001f3d;
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.record-detail-header h2 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

.record-detail-badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.record-detail-badge.badge-green {
  background-color: rgba(34, 197, 94, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.record-detail-badge.badge-amber {
  background-color: rgba(245, 158, 11, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.record-detail-badge.badge-red {
  background-color: rgba(239, 68, 68, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.record-detail-meta {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.record-detail-meta p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.record-detail-meta strong {
  color: #333;
  margin-right: 0.5rem;
}

.record-section-detail {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
}

.record-section-detail h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #333;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.record-section-detail.amber-detail {
  border-left-color: #f59e0b;
  background-color: #fffbf0;
}

.record-section-detail.amber-detail h3 {
  color: #856404;
}

.record-section-detail.red-detail {
  border-left-color: #ef4444;
  background-color: #fff5f7;
}

.record-section-detail.red-detail h3 {
  color: #721c24;
}

.record-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.record-detail-grid div {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.record-detail-grid strong {
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.record-note {
  margin-bottom: 1rem;
}

.record-note strong {
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.record-note p {
  margin: 0;
  color: #555;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border-left: 3px solid #667eea;
  font-style: italic;
}

.record-section-detail.voice-detail {
  border-left-color: #06b6d4;
  background-color: #f0f9fc;
}

.record-section-detail.voice-detail h3 {
  color: #0369a1;
}

.quote-style {
  font-size: 1.05rem;
  font-weight: 500;
  border-left-color: #06b6d4 !important;
}

/* Parent PIN Click to Copy */
.clickable-pin {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 156, 173, 0.05);
}

.clickable-pin:hover {
  background-color: rgba(0, 156, 173, 0.1);
  border-color: #009cad;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.15);
}

.clickable-pin:active {
  transform: scale(0.98);
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  color: #009cad;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 156, 173, 0.25);
  z-index: 9999;
  animation: popIn 0.3s ease-out, popOut 0.3s ease-in 0.9s forwards;
  border: 2px solid #009cad;
  pointer-events: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
/* Parent Flagged Issues Tab Styles */

.parent-flags-filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.filter-group label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.95rem;
  white-space: nowrap;
}

.date-search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.date-search-input:hover {
  border-color: #009cad;
  box-shadow: 0 2px 4px rgba(0, 156, 173, 0.1);
}

.date-search-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.clear-date-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.clear-date-btn:hover {
  color: #ef4444;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:hover {
  border-color: #009cad;
  box-shadow: 0 2px 4px rgba(0, 156, 173, 0.1);
}

.filter-select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.parent-flags-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.parent-flag-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.parent-flag-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.flag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.flag-mood {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #001f3d;
}

.flag-date {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
}

.flag-note {
  background: #fff7ed;
  border-left: 3px solid #f97316;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.flag-note strong {
  color: #333;
  display: block;
  margin-bottom: 0.25rem;
}

.flag-tags {
  margin-top: 1rem;
}

.flag-tags strong {
  display: block;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-list .tag {
  background: #e2e8f0;
  color: #333;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #666;
}

.empty-state p {
  margin: 0.5rem 0;
}

.empty-state .subtext {
  font-size: 0.9rem;
  color: #999;
  font-style: italic;
}

@media (max-width: 640px) {
  .parent-flags-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-select,
  .date-search-input {
    width: 100%;
  }

  .flag-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flag-date {
    width: 100%;
  }
}
/* Records Page Badge Styles */
.records-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 80px;
  text-align: center;
}

.records-badge.badge-green {
  background-color: #22c55e;
  color: #fff;
}

.records-badge.badge-amber {
  background-color: #f59e0b;
  color: #fff;
}

.records-badge.badge-red {
  background-color: #ef4444;
  color: #fff;
}

.records-badge.badge-neutral {
  background-color: #9ca3af;
  color: #fff;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.skeleton-row {
  cursor: default !important;
  pointer-events: none;
}

.skeleton-row:hover {
  background-color: transparent !important;
  box-shadow: none !important;
  border-left-color: transparent !important;
  transform: none !important;
}

.skeleton {
  background-color: #e0e0e0;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin: 0.25rem 0;
}

.skeleton-badge {
  height: 1.5rem;
  width: 80px;
  border-radius: 4px;
}

/* Filter Container */
.filter-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  border: 2px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #009cad;
  color: #009cad;
}

.filter-btn.active {
  background-color: #009cad;
  color: white;
  border-color: #009cad;
}

/* Deleted Record Row */
.deleted-record-row {
  opacity: 0.7;
}

.deleted-record-row:hover {
  background-color: transparent;
  transform: none;
  box-shadow: none;
  border-left-color: transparent;
}

/* Restore Button */
.restore-btn {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restore-btn:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.restore-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Subtitle with Info Icon */
.header-subtitle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-subtitle p {
  margin: 0;
}

/* Info Icon Tooltip */
.info-icon-wrapper {
  position: relative;
  display: inline-block;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #009cad;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  transition: all 0.2s ease;
}

.info-icon:hover {
  background-color: #007a8a;
  transform: scale(1.1);
}

.tooltip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100%;
  right: auto;
  margin-left: 0.5rem;
  background-color: #001f3d;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  left: auto;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #001f3d;
}

.info-icon-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}
.record-form-container {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  color: #1e293b;
  scrollbar-gutter: stable;
}

/* Header */
.form-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.form-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin-left: 250px;
  box-sizing: border-box;
}

.form-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 250px;
  background-color: #009cad;
  color: white;
  padding: 1.5rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 99;
}

.nav-menu {
  flex: 1;
}

.nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(0, 156, 173, 0.7);
  box-shadow: inset 4px 0 0 #f97316;
}

.nav-menu a.active {
  background-color: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f97316;
  padding-left: calc(1.5rem - 3px);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-sidebar {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role-sidebar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.logout-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  margin: 0 1.5rem;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Main Content */
.form-main {
  flex: 1;
  margin-left: 250px;
  margin-top: 60px;
  padding: 1.5rem;
  height: calc(100vh - 60px);
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

/* Tabs */
.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #cbd5e1;
  overflow-x: auto;
  flex-wrap: wrap;
}

.form-tab {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  white-space: nowrap;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-tab:hover {
  color: #1e293b;
}

.form-tab.active {
  color: #f97316;
  border-bottom: 3px solid #f97316;
}

/* Form Content */
.form-content {
  max-width: 1000px;
}

.form-section {
  display: flex;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.form-card h2 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
  font-size: 1.5rem;
}

.form-card h3 {
  margin: 1.5rem 0 1rem 0;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
}

.form-card h4 {
  margin: 0 0 0.75rem 0;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 600;
}

.help-text {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.5rem 0;
  font-size: 0.95rem;
  color: #333;
}

.sub-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 1.5rem 0;
  font-style: italic;
  line-height: 1.5;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.form-grid > div {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox & Radio Grids */
.checkbox-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
}

.small-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.colour-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.pill {
  position: relative;
}

.pill input {
  display: none;
}

.pill span {
  display: block;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill input:checked + span {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.pill.green input:checked + span {
  background: #16a34a;
  border-color: #16a34a;
}

.pill.amber input:checked + span {
  background: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.pill.red input:checked + span {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e2e8f0;
}

.badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge.amber {
  background: #fef3c7;
  color: #b45309;
}

.badge.red {
  background: #fee2e2;
  color: #991b1b;
}

/* Passport Grid */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.passport-grid.empty {
  opacity: 0.6;
  pointer-events: none;
}

.passport-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.passport-card.empty {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
}

.passport-card h4 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.passport-card-title {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}

.passport-card-title.blue {
  color: #1e40af;
  border-bottom-color: #3b82f6;
}

.passport-card-title.amber {
  color: #b45309;
  border-bottom-color: #f59e0b;
}

.passport-card-title.red {
  color: #991b1b;
  border-bottom-color: #ef4444;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e2e8f0;
}

.badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge.amber {
  background: #fef3c7;
  color: #b45309;
}

.badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.passport-placeholder {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  margin: 0;
}

/* Learner Selection */
.learner-search-section {
  margin-bottom: 1.5rem;
}

.learner-search-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.2s;
}

.learner-search-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.students-list {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  max-height: 500px;
  overflow-y: auto;
  background: #f8fafc;
  margin-bottom: 1.5rem;
}

.student-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.student-list-item:last-child {
  border-bottom: none;
}

.student-list-item:hover {
  background: white;
  box-shadow: inset 0 0 0 2px #009cad;
}

.student-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009cad 0%, #006b7d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.student-item-info {
  flex: 1;
  min-width: 0;
}

.student-item-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: #1e293b;
}

.student-item-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.no-students {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

.selected-student-card {
  background: linear-gradient(135deg, #f0f9fa 0%, #e0f8fb 100%);
  border: 2px solid #009cad;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.selected-student-info {
  display: flex;
  flex-direction: column;
}

.selected-student-info h3 {
  margin: 0 0 1rem 0;
  color: #009cad;
  font-size: 1.25rem;
}

.selected-student-info p {
  margin: 0.5rem 0;
  color: #334155;
  font-size: 0.95rem;
}

.selected-student-info .btn-secondary {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Alerts & Notices */
.notice {
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0 1.5rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 0.75rem;
}

.notice.amber {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.notice.red {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.alert-box {
  background: #fef2f2;
  border: 1px solid #dc2626;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0 1.5rem 0;
  color: #991b1b;
}

/* Preview Box */
.preview-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
  max-height: 500px;
  overflow-y: auto;
}

.preview-box pre {
  margin: 0;
  font-size: 0.85rem;
  color: #1e293b;
  font-family: 'Monaco', 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Buttons */
.button-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: #1e293b;
  color: white;
}

.btn-primary:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: white;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #1e293b;
}

/* Review Actions Section */
.review-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.btn-preview,
.btn-save-timeline,
.btn-download {
  padding: 0.75rem 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  color: #1e293b;
  width: 100%;
  text-align: center;
}

.btn-save-timeline {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
}

.btn-save-timeline:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* Session Selection */
.session-selection-section {
  margin-top: 1.5rem;
}

.auto-fill-notice {
  background-color: #dbeafe;
  border-left: 4px solid #0284c7;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #0c4a6e;
  font-weight: 500;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.session-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.session-card:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
  transform: translateY(-2px);
}

.session-card.selected {
  border-color: #0284c7;
  background-color: #dbeafe;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.session-date {
  font-weight: 700;
  color: #0284c7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.session-time {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.session-subject {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.session-location {
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }

  .form-header .header-content {
    margin-left: 200px;
  }

  .form-main {
    margin-left: 200px;
    padding: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .checkbox-grid,
  .radio-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.5rem;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .form-tabs {
    flex-wrap: wrap;
  }

  .form-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .passport-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 180px;
  }

  .form-header .header-content {
    margin-left: 180px;
  }

  .form-main {
    margin-left: 180px;
  }

  .form-card {
    border-radius: 12px;
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-grid,
  .radio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .passport-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline Styles */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-notice {
  background: #e0f8fb;
  border: 1px solid #009cad;
  border-radius: 8px;
  padding: 1rem;
  color: #006b7d;
}

.timeline-notice p {
  margin: 0.5rem 0;
}

.timeline-example-green,
.timeline-example-amber,
.timeline-example-red {
  border-left: 4px solid #ccc;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 6px;
  transition: all 0.2s;
}

.timeline-example-green {
  border-left-color: #4caf50;
  background: #f1f8f1;
}

.timeline-example-amber {
  border-left-color: #ff9800;
  background: #fff8f1;
}

.timeline-example-red {
  border-left-color: #f44336;
  background: #fef1f1;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline-date {
  font-weight: 600;
  color: #1e293b;
}

.timeline-colour-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.timeline-colour-badge.green {
  background: #4caf50;
  color: white;
}

.timeline-colour-badge.amber {
  background: #ff9800;
  color: white;
}

.timeline-colour-badge.red {
  background: #f44336;
  color: white;
}

.timeline-item-content {
  color: #64748b;
}

.timeline-item-content p {
  margin: 0.5rem 0;
}

/* Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.25rem;
}

.modal-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-leave {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-leave:hover {
  color: #333;
  transform: translateX(-2px);
}

.btn-stay {
  background: #001f3d;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-stay:hover {
  background: #002a5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.2);
}

.btn-stay:active {
  transform: translateY(0);
}
.record-view-container {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Back Button */
.back-to-records-top {
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-records-top:hover {
  color: #5568d3;
  transform: translateX(-4px);
}

/* Header */
.record-header {
  background: #001f3d;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.record-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.record-header h1 {
  font-size: 2rem;
  margin: 0;
  flex: 1;
}

.record-badge {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

.record-badge.badge-green {
  background-color: rgba(212, 237, 218, 0.3);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.record-badge.badge-amber {
  background-color: rgba(255, 243, 205, 0.3);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.record-badge.badge-red {
  background-color: rgba(248, 215, 218, 0.3);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.record-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.record-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sections */
.record-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.amber-section {
  border-left: 4px solid #ffc107;
  background: #fffbf0;
}

.amber-section .section-title {
  color: #856404;
}

.red-section {
  border-left: 4px solid #dc3545;
  background: #fff5f7;
}

.red-section .section-title {
  color: #721c24;
}

.voice-section {
  border-left: 4px solid #17a2b8;
  background: #f0f7fb;
}

.voice-section .section-title {
  color: #0c5460;
}

/* Grid Layout */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

/* Detail Items */
.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.detail-item p {
  font-size: 1rem;
  color: #333;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

.detail-item p:empty::before {
  content: '-';
  color: #ccc;
}

.note-text {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  font-style: italic;
  color: #555;
}

.quote-text {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 1.25rem;
  border-radius: 6px;
  border-left: 4px solid #17a2b8;
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
  font-style: italic;
}

/* Error Message */
.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #721c24;
}

.error-message p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

/* Action Buttons */
.record-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.record-actions button {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* 3-Dot Menu */
.record-menu-container {
  position: relative;
  flex-shrink: 0;
}

.record-menu-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.record-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.record-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 100;
  min-width: 150px;
  margin-top: 0.5rem;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.record-menu-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.record-menu-item:hover {
  background-color: #f5f5f5;
  color: #001f3d;
}

.record-menu-item-delete {
  color: #ef4444;
  border-top: 1px solid #e0e0e0;
}

.record-menu-item-delete:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.record-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .record-view-container {
    padding: 1rem;
  }

  .record-header {
    padding: 1.5rem;
  }

  .record-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .record-header h1 {
    font-size: 1.5rem;
  }

  .record-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .record-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.1rem;
  }
}
.admin-layout-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f8f9fa;
}

.admin-layout-header {
  background: linear-gradient(135deg, #001f3d 0%, #002847 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-bottom: 3px solid #009cad;
}

.admin-layout-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.admin-layout-sidebar {
  position: fixed;
  left: 0;
  top: 70px;
  width: 260px;
  height: calc(100vh - 70px);
  background: #009cad;
  border-right: 1px solid #007a8a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}

.admin-layout-sidebar .nav-menu {
  flex: 1;
  padding: 1.5rem 0;
}

.admin-layout-sidebar .nav-section {
  margin-bottom: 1.5rem;
  padding: 0;
}

.admin-layout-sidebar .nav-section h3 {
  margin: 0 1rem 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.admin-layout-sidebar .nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-layout-sidebar .nav-section li {
  margin: 0;
}

.admin-layout-sidebar .nav-section a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-layout-sidebar .nav-section a:hover {
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.admin-layout-sidebar .nav-section a.active {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border-left-color: #f97316;
  font-weight: 600;
}

.admin-layout-sidebar .admin-user-section {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.admin-layout-sidebar .user-avatar-admin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-layout-sidebar .user-info-admin {
  flex: 1;
  min-width: 0;
}

.admin-layout-sidebar .user-name-admin {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-layout-sidebar .user-role-admin {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-layout-sidebar .logout-link {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.admin-layout-sidebar .logout-link:hover {
  color: #991b1b;
  text-decoration: underline;
}

.admin-layout-main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem 3rem;
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .admin-layout-main {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .admin-layout-sidebar {
    width: 220px;
  }
  
  .admin-layout-main {
    margin-left: 220px;
    padding: 1.5rem;
  }
}
/* Content sections */
.admin-section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
  margin-top: 0;
  color: #001f3d;
  font-size: 1.8rem;
}

.admin-section h3 {
  margin-top: 0;
  color: #001f3d;
  font-size: 1.3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 24px;
  height: 24px;
}

.notification-badge {
  background-color: #dc2626;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Empty states */
.empty-state {
  text-align: center;
  color: #999;
  padding: 2rem;
  font-size: 0.95rem;
}

/* Tables */
.students-table table,
.staff-table table {
  width: 100%;
  border-collapse: collapse;
}

.students-table th,
.staff-table th {
  background-color: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #001f3d;
  border-bottom: 2px solid #ddd;
  font-size: 0.9rem;
}

.students-table td,
.staff-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.students-table tr:last-child td,
.staff-table tr:last-child td {
  border-bottom: none;
}

/* Statistics */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf0 100%);
  border-left: 4px solid #009cad;
  padding: 1.5rem;
  border-radius: 6px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #009cad;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Notifications list */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-item:hover {
  background: #f0f0f0;
  border-color: #009cad;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.5rem;
}

.notification-details {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
}

.notification-type {
  display: inline-block;
  background: #e8f4f8;
  color: #009cad;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-weight: 500;
}

.notification-date {
  color: #999;
}

.notification-reason {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

.notification-arrow {
  color: #009cad;
  font-size: 1.5rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-top: 0;
  color: #001f3d;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.error-message {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #991b1b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.success-message {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #166534;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .students-table th,
  .staff-table th {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .students-table td,
  .staff-table td {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  animation: fadeInSlideUp 0.5s ease-out;
}

.admin-section h2 {
  color: #001f3d;
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.admin-section p {
  color: #666;
  margin: 0 0 1.5rem 0;
}

.admin-section h3 {
  color: #001f3d;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
}

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #e0f7f9 0%, #d0f3f6 100%);
  color: #001f3d;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #009cad;
  animation: fadeInSlideUp 0.5s ease-out;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #009cad;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background-color: #009cad;
  color: white;
}

.btn-primary:hover {
  background-color: #007a88;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Empty state */
.empty-state {
  background-color: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #999;
}

/* Tables */
.students-table,
.staff-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  color: #333;
}

table tbody tr {
  animation: fadeIn 0.4s ease-out;
}

table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInSlideUp 0.3s ease-out;
}

.modal-content h3 {
  color: #001f3d;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
}

.modal-content .form-group {
  margin-bottom: 1.5rem;
}

.modal-content label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

/* Error message */
.error-message {
  background-color: #fee;
  color: #c00;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 4px solid #c00;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

/* Notifications */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-badge {
  display: inline-block;
  background-color: #f86718;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
  border-left: 4px solid #f86718;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid #f8e5d0;
}

.notification-item:hover {
  background: linear-gradient(135deg, #ffedd5 0%, #ffe0bd 100%);
  box-shadow: 0 4px 12px rgba(248, 103, 24, 0.15);
  transform: translateX(4px);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #001f3d;
  margin-bottom: 0.5rem;
}

.notification-details {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.notification-type {
  display: inline-block;
  background-color: #f86718;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.notification-date {
  color: #999;
}

.notification-reason {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

.notification-arrow {
  font-size: 1.5rem;
  color: #f86718;
  margin-left: 1rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    width: 200px;
  }

  .admin-main {
    margin-left: 200px;
    padding: 1rem;
  }

  .admin-dashboard-header .header-content {
    margin-left: 200px;
  }

  .admin-section {
    padding: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header .btn {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admin-sidebar {
    width: 0;
    overflow: hidden;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-dashboard-header .header-content {
    margin-left: 0;
  }

  .modal-content {
    width: 95%;
  }

  table {
    font-size: 0.85rem;
  }

  table th,
  table td {
    padding: 0.75rem;
  }
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.skeleton-row {
  pointer-events: none;
}

.skeleton-row td {
  padding: 0.75rem;
}

.skeleton {
  background-color: #e0e0e0;
  border-radius: 4px;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
}

.skeleton-badge {
  height: 1.5rem;
  width: 80px;
}
/* Intelligence Dashboard Styles - Phase 3 */

:root {
  --dark: #1f2937;
  --orange: #ff8c42;
  --green: #10b981;
  --amber: #fbbf24;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --soft: #f3f4f6;
  --line: #e5e7eb;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--soft);
  color: var(--dark);
}

.intelligence-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--soft);
  min-height: 100vh;
}

.intelligence-header {
  background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.intelligence-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.intelligence-header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.intelligence-header p {
  margin: 0.75rem 0;
  color: #d1d5db;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.header-top h1 {
  margin: 0;
}

.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.student-selector {
  background-color: white;
  color: var(--dark);
  border: 2px solid var(--line);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  min-width: 240px;
  width: 100%;
  max-width: 240px;
  pointer-events: auto;
  position: relative;
}

.student-selector:hover {
  border-color: var(--orange);
  background-color: #fafafa;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.15);
}

.student-selector:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1), 0 2px 8px rgba(255, 140, 66, 0.15);
}

.student-selector:active {
  background-color: #f5f5f5;
}

.no-students-text {
  color: #999;
  font-size: 0.95rem;
}

.btn-change-student {
  background: white;
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-change-student:hover {
  background: #f3f4f6;
}

.btn-run-analysis {
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
}

.btn-run-analysis:hover:not(:disabled) {
  background: #ff7a2c;
  transform: translateY(-2px);
}

.btn-run-analysis:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Student Selection */
.student-selection {
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 3rem auto;
}

.student-selection h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--dark);
}

.student-selection p {
  color: #6b7280;
  margin: 0 0 2rem 0;
}

.student-select-box {
  text-align: left;
}

.student-select-box label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark);
}

.student-select-box select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
}

.student-select-box select:hover {
  border-color: var(--orange);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  flex-wrap: wrap;
  border: 1px solid #f0f0f0;
}

.tab {
  padding: 0.65rem 1.1rem;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 0.9rem;
  position: relative;
}

.tab:hover {
  background: #f9f9f9;
  color: var(--dark);
}

.tab.active {
  background: white;
  color: var(--orange);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.15);
}

.tab-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.card h2 {
  margin: 0 0 1rem 0;
  color: var(--dark);
  font-size: 1.4rem;
}

.card h3 {
  margin: 1rem 0 0.5rem 0;
  color: var(--dark);
  font-size: 1.1rem;
}

/* Help Box */
.help-box {
  background: linear-gradient(to right, rgba(255, 140, 66, 0.08), transparent);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: #92400e;
  font-size: 0.95rem;
  border-top: 2px solid var(--orange);
  border-bottom: 1px solid rgba(255, 140, 66, 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #fafafa 0%, white 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-card h3 {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--orange);
  margin: 0.5rem 0 0.75rem 0;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.stat-card p {
  margin: 1rem 0 0 0;
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.25rem;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.badge.red-bg {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

.badge.amber-bg {
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fde68a;
}

.badge.green-bg {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge.blue-bg {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge.yellow-bg {
  background: #fefce8;
  color: #713f12;
  border: 1px solid #fef08a;
}

.badge.pink-bg {
  background: #fdf2f8;
  color: #831843;
  border: 1px solid #fbcfe8;
}

/* Matrix */
.matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.cell {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cell::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cell b {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

/* Rules */
.rule {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  opacity: 0.3;
}

.rule strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Passport Sections */
.passport-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.passport-col {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.passport-col h3 {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}

.passport-col .badge {
  display: block;
  margin: 0.5rem 0;
  text-align: left;
  padding: 0.5rem 0.75rem;
}

/* Timeline Items */
.timeline-item {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  margin: 1rem 0;
  border-top: 3px solid #e5e7eb;
  border-left: 4px solid #e5e7eb;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.timeline-item.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, white 100%);
  border-top-color: var(--green);
  border-left-color: var(--green);
}

.timeline-item.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, white 100%);
  border-top-color: var(--blue);
  border-left-color: var(--blue);
}

.timeline-item.orange {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.05) 0%, white 100%);
  border-top-color: var(--orange);
  border-left-color: var(--orange);
}

.timeline-item b {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* Tables */
.risk-table,
.review-table,
.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.risk-table thead,
.review-table thead,
.settings-table thead {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #374151;
  font-weight: 600;
}

.risk-table th,
.review-table th,
.settings-table th,
.risk-table td,
.review-table td,
.settings-table td {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.risk-table tbody tr:hover,
.review-table tbody tr:hover {
  background: #fafbfc;
}

/* Decision Grid */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.decision-grid .card {
  margin-bottom: 0;
}

.decision-grid button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Graphs */
.graphs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.graph-card {
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.graph-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}

.graph-card p {
  margin: 0.5rem 0 1rem 0;
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chart {
  height: 180px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
}

.bar {
  position: absolute;
  bottom: 0;
  width: 8%;
  background: #ccc;
  border-radius: 8px 8px 0 0;
  opacity: 0.5;
}

.bar.green {
  background: var(--green);
  opacity: 0.9;
}

.bar.amber {
  background: var(--amber);
  opacity: 0.9;
}

.bar.red {
  background: var(--red);
  opacity: 0.9;
}

.bar.blue {
  background: var(--blue);
  opacity: 0.9;
}

.bar.purple {
  background: var(--purple);
  opacity: 0.9;
}

/* Correlations Grid */
.correlations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.correlations-grid .card {
  margin-bottom: 0;
}

.correlations-grid .card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.settings-grid > div {
  display: flex;
  flex-direction: column;
}

.settings-grid label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
}

.settings-grid select {
  padding: 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--dark);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-grid select:hover {
  border-color: var(--orange);
}

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.preview-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 150px;
  color: #999;
  font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: white;
  color: var(--dark);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: var(--dark);
}

/* Textarea */
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  color: #7f1d1d;
  padding: 1rem;
  border-radius: 12px;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 1.5rem;
}

/* Edit Suggestion Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.edit-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.edit-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
}

.edit-textarea:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  justify-content: flex-end;
  background: #f9fafb;
}

.btn-cancel {
  padding: 0.65rem 1.5rem;
  background: #e5e7eb;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #d1d5db;
}

.btn-save {
  padding: 0.65rem 1.5rem;
  background: #009cad;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: #007a88;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .intelligence-container {
    padding: 1.5rem;
  }

  .tabs {
    font-size: 0.9rem;
    gap: 0.25rem;
  }

  .tab {
    padding: 0.6rem 1rem;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== SUGGESTION CARDS (Auto Passport Tab) ========== */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.suggestion-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.suggestion-card.status-approved {
  border-left: 5px solid var(--green);
  background: #f0fdf4;
}

.suggestion-card.status-rejected {
  border-left: 5px solid var(--red);
  background: #fef2f2;
  opacity: 0.7;
}

.suggestion-card.status-pending {
  border-left: 5px solid var(--orange);
  background: #fffbf0;
}

.suggestion-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.suggestion-header h4 {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggestion-content {
  margin-bottom: 1rem;
}

.suggestion-text {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  color: var(--dark);
}

.suggestion-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
}

.suggestion-stats .stat {
  font-size: 0.85rem;
}

.suggestion-stats label {
  color: #666;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 0.25rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 3px;
}

.suggestion-notes {
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  margin: 0.75rem 0;
}

.suggestion-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-approve {
  flex: 1;
  min-width: 80px;
  padding: 0.6rem 1rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-approve:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn-edit {
  flex: 1;
  min-width: 80px;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-edit:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-reject {
  flex: 1;
  min-width: 80px;
  padding: 0.6rem 1rem;
  background: #e5e7eb;
  color: var(--dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-reject:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

/* ========== ALERT CARDS (Risk Engine Tab) ========== */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.alert-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.alert-card.alert-high {
  border-left: 5px solid var(--red);
  background: #fef2f2;
}

.alert-card.alert-medium {
  border-left: 5px solid var(--amber);
  background: #fffbf0;
}

.alert-card.alert-low {
  border-left: 5px solid var(--green);
  background: #f0fdf4;
}

.alert-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line);
}

.alert-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-info h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--dark);
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-reviewed {
  background: #dcfce7;
  color: #166534;
}

.alert-content {
  margin: 1rem 0;
}

.alert-content p {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert-content strong {
  color: var(--dark);
  font-weight: 600;
}

.alert-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.alert-actions .btn-primary,
.alert-actions .btn-secondary {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.alert-actions .btn-primary {
  background: var(--green);
  color: white;
}

.alert-actions .btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
}

.alert-actions .btn-secondary {
  background: var(--line);
  color: var(--dark);
}

.alert-actions .btn-secondary:hover {
  background: #d1d5db;
}

.alert-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  color: var(--green);
  font-weight: 600;
}

/* ========== PATTERN CARDS (Emerging Patterns Tab) ========== */
.patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pattern-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pattern-card.pattern-confirmed {
  border-left: 5px solid var(--green);
  background: #f0fdf4;
}

.pattern-card.pattern-emerging {
  border-left: 5px solid var(--amber);
  background: #fffbf0;
}

.pattern-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.pattern-header {
  margin-bottom: 1.25rem;
}

.pattern-header h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  color: var(--dark);
  word-break: break-word;
}

.pattern-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pattern-badges .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pattern-content {
  flex: 1;
  margin-bottom: 1rem;
}

.pattern-stat {
  margin-bottom: 1rem;
}

.pattern-stat label {
  display: block;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.pattern-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.pattern-footer {
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  color: #666;
  font-size: 0.85rem;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {
  .intelligence-container {
    padding: 1rem;
  }

  .intelligence-header {
    padding: 1.5rem;
  }

  .intelligence-header h1 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    font-size: 0.85rem;
    gap: 0.2rem;
  }

  .tab {
    padding: 0.5rem 0.75rem;
  }

  .matrix,
  .graphs-grid,
  .passport-sections,
  .correlations-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .export-buttons {
    flex-direction: column;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    font-size: 0.85rem;
  }

  table th,
  table td {
    padding: 0.5rem;
  }
}
.timetable-content {
  display: flex;
  flex-direction: column;
}

.timetable-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.timetable-header-content .header-text {
  flex: 1;
}

.timetable-header-content h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.8rem;
  font-weight: 700;
}

.timetable-header-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.import-btn {
  background: #009cad !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  white-space: nowrap;
  transition: all 0.2s;
}

.import-btn:hover {
  background: #008095 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 156, 173, 0.3) !important;
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.settings-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
  color: #001f3d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.settings-btn:hover {
  transform: rotate(20deg);
  color: #009cad;
}

.settings-panel {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-content h3 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.1rem;
}

.settings-option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.settings-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #333;
  font-weight: 500;
}

.settings-option input[type="radio"] {
  cursor: pointer;
}

.date-input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  max-width: 200px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-danger {
  background: #dc2626 !important;
  color: white !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

.btn-danger:disabled {
  background: #999 !important;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .timetable-header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .header-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .import-btn {
    width: auto;
    flex: 1;
  }
}

.error-banner {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 1rem;
  color: #991b1b;
  margin-bottom: 2rem;
  font-weight: 500;
}

.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.month-title {
  margin: 0;
  color: #001f3d;
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #999;
}

.calendar-grid-wrapper {
  min-height: 600px;
  border-radius: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-day-header {
  background: #001f3d;
  color: white;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

.calendar-day {
  background: white;
  padding: 1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day.empty {
  background: #f5f5f5;
  cursor: default;
}

.calendar-day.active:hover {
  background: #f0f8fa;
  box-shadow: inset 0 0 0 2px #009cad;
}

.calendar-day.today .day-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #009cad;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.day-number {
  font-weight: 700;
  color: #001f3d;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sessions-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sessions-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-chip {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf0 100%);
  border-left: 3px solid #009cad;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.session-time {
  font-weight: 700;
  color: #001f3d;
}

.session-location {
  color: #666;
  font-size: 0.75rem;
}

.session-more {
  padding: 0.5rem 0.75rem;
  color: #009cad;
  font-weight: 600;
  font-size: 0.8rem;
}

.no-sessions {
  color: #999;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media (max-width: 1200px) {
  .timetable-content {
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .calendar-day {
    min-height: 120px;
    padding: 0.75rem;
  }

  .session-chip {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
}
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn-secondary {
  background: white;
  border: 2px solid #009cad;
  color: #009cad;
}

.btn-secondary:hover {
  background: #f0f8fa;
  border-color: #007a8a;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #cbd5e1;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-height: 0;
}

.calendar-day-header {
  background: linear-gradient(135deg, #001f3d 0%, #002847 100%);
  color: white;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.calendar-day {
  background: white;
  padding: 0.75rem;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.calendar-day.empty {
  background: #f5f5f5;
  cursor: default;
}

.calendar-day.active:hover {
  background: #f0f8fa;
  box-shadow: inset 0 0 0 2px #009cad;
}

.calendar-day.today .day-number {
  background: #009cad;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.day-number {
  font-weight: 700;
  color: #001f3d;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sessions-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.sessions-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow: hidden;
}

.session-chip {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  border: 1px solid #0284c7;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0c4a6e;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 20px;
}

.session-time {
  font-weight: 700;
  color: #0c4a6e;
}

.session-location {
  font-size: 0.65rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-more {
  background: rgba(0, 156, 173, 0.1);
  border: 1px dashed #009cad;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #009cad;
  text-align: center;
}

.no-sessions {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding-top: 2rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 1400px) {
  .calendar-grid {
    gap: 0;
  }
  
  .calendar-day {
    min-height: 100px;
    padding: 0.5rem;
  }
  
  .session-chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 1024px) {
  .timetable-content {
    padding: 1.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .day-number {
    font-size: 0.9rem;
  }
  
  .session-chip {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .timetable-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .timetable-content {
    padding: 1rem;
  }
  
  .calendar-controls {
    gap: 0.75rem;
  }
  
  .month-title {
    font-size: 1.3rem;
    min-width: auto;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 0.4rem;
  }
  
  .day-number {
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
  }
  
  .session-chip {
    font-size: 0.6rem;
    padding: 0.2rem 0.3rem;
    min-height: 16px;
  }
  
  .calendar-day-header {
    padding: 0.5rem 0.25rem;
    font-size: 0.7rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-dashboard-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  z-index: 100;
  border-radius: 8px;
  animation: fadeIn 0.2s ease-in;
}

.admin-dashboard-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #009cad;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.day-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.day-page-header {
  background: linear-gradient(135deg, #001f3d 0%, #002847 100%);
  color: white;
  padding: 2rem 3rem;
  padding-left: 3rem;
  border-bottom: 3px solid #009cad;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.3rem;
  animation: slideDown 0.3s ease-out;
  flex-shrink: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.back-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow: hidden;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

.back-button:hover {
  transform: translateX(-4px);
  color: #009cad;
}

.header-content h1 {
  margin: 0;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
  text-align: left;
}

.header-content p {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  text-align: left;
}

.day-page-content {
  flex: 1;
  padding: 2rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.error-banner {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 1rem;
  color: #991b1b;
  margin-bottom: 2rem;
  font-weight: 500;
}

.page-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #007a8a 0%, #005d6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 173, 0.4);
}

.btn-secondary {
  background: white;
  border: 2px solid #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  border-color: #009cad;
  background-color: #f8fafc;
}

.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background: #fecaca;
  border-color: #f87171;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Form Container */
.session-form-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.form-card {
  max-width: 100%;
}

.form-card h2 {
  margin: 0 0 1.5rem 0;
  color: #001f3d;
  font-size: 1.4rem;
  border-bottom: 2px solid #009cad;
  padding-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #001f3d;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: white;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

/* Form Section */
.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin: 0 0 1rem 0;
  color: #001f3d;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
  padding: 0.5rem;
  border-radius: 6px;
}

.checkbox-label:hover {
  background-color: rgba(0, 156, 173, 0.1);
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #009cad;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

/* Sessions List */
.day-page-content {
  flex: 1;
  min-height: 400px;
}

.sessions-list {
  margin-top: 2rem;
}

.sessions-list h2 {
  margin: 0 0 1.5rem 0;
  color: #001f3d;
  font-size: 1.4rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1rem;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.session-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.session-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #009cad;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.session-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.2rem;
  font-weight: 700;
}

.location-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.session-card p {
  margin: 0.75rem 0;
  color: #333;
  font-size: 0.95rem;
}

.subject {
  color: #b45309;
  background-color: #fef3c7;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.staff-list,
.students-list {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 6px;
}

.staff-list strong,
.students-list strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #001f3d;
  font-weight: 700;
}

.members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.member-badge.student {
  background: #dcfce7;
  color: #166534;
}

.session-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  pointer-events: auto;
}

.session-actions .btn {
  flex: 1;
  pointer-events: auto;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #666;
}

.empty-state p {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sessions-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .day-page-header {
    padding: 1.5rem;
    gap: 0.75rem;
  }
  
  .day-page-content {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .page-controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .sessions-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content h1 {
    font-size: 1.4rem;
  }
}

/* Prevent horizontal scrollbar */
body {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.admin-dashboard-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  z-index: 100;
  border-radius: 8px;
  animation: fadeIn 0.2s ease-in;
}

.admin-dashboard-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #009cad;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Admin Timetable Import Page */

.admin-timetable-import-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}

.back-btn {
  background: none;
  border: none;
  color: #001f3d;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  transition: color 0.2s;
  font-weight: 500;
}

.back-btn:hover {
  color: #009cad;
}

.page-header h1 {
  color: #001f3d;
  margin: 0;
  font-size: 2rem;
}

.import-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Instructions Section */
.instructions-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instructions-section h2 {
  color: #001f3d;
  margin-top: 0;
  font-size: 1.5rem;
}

.instructions-section ol,
.instructions-section ul {
  color: #333;
  line-height: 1.8;
}

.instructions-section li {
  margin-bottom: 0.75rem;
}

.template-section {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border-left: 4px solid #009cad;
}

.template-section h3 {
  color: #001f3d;
  margin-top: 0;
}

.template-section p {
  color: #666;
  font-size: 0.95rem;
}

.template-note {
  background: #e8f4f7;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #00658e;
  margin-bottom: 1rem;
}

.template-section ul {
  color: #555;
  font-size: 0.9rem;
}

.template-btn {
  background: #009cad;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 1rem;
  display: inline-block;
}

.template-btn:hover {
  background: #008095;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 156, 173, 0.3);
}

/* Upload Section */
.upload-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.upload-section form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Weeks Container */
.weeks-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weeks-container h3 {
  color: #001f3d;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.week-file-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-header label {
  color: #001f3d;
  font-weight: 600;
  font-size: 0.95rem;
}

.remove-week-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  transition: color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-week-btn:hover {
  color: #dc2626;
}

.drop-zone {
  position: relative;
  border: 2px dashed #009cad;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #f0fafb;
  transition: all 0.2s;
  cursor: pointer;
}

.drop-zone:hover {
  border-color: #001f3d;
  background: #e8f4f7;
}

.file-input {
  display: none;
}

.file-label {
  display: block;
  cursor: pointer;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.drop-text {
  color: #001f3d;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.drop-subtext {
  color: #999;
  font-size: 0.85rem;
}

.add-week-btn {
  background: #e8f4f7;
  color: #009cad;
  border: 2px dashed #009cad;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.add-week-btn:hover:not(:disabled) {
  background: #d4ebef;
  transform: translateY(-2px);
}

.add-week-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Rotation Settings */
.rotation-settings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #009cad;
}

.rotation-settings h3 {
  color: #001f3d;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.rotation-pattern-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rotation-pattern-group label {
  color: #001f3d;
  font-weight: 600;
  font-size: 0.95rem;
}

.pattern-input {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  color: #333;
}

.pattern-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.pattern-help {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.date-range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.date-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.date-input-wrapper label {
  color: #001f3d;
  font-weight: 600;
  font-size: 0.95rem;
}

.date-input {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  color: #333;
  cursor: pointer;
}

.date-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.date-range-summary {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #00658e;
  font-size: 0.9rem;
  text-align: center;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border-left: 4px solid #ef4444;
}

.conflict-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #fca5a5;
  background: #fef2f2;
  padding: 0.75rem;
  border-radius: 4px;
}

.conflict-details strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #7f1d1d;
  font-weight: 600;
}

.conflict-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conflict-details li {
  padding: 0.4rem 0;
  margin: 0;
  font-size: 0.85rem;
}

.conflict-details li strong {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #991b1b;
  font-weight: 600;
}

.import-btn {
  background: #001f3d;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.import-btn:hover:not(:disabled) {
  background: #003d5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.3);
}

.import-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Results Section */
.results-section {
  grid-column: 1 / -1;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-section h2 {
  color: #001f3d;
  margin-top: 0;
  font-size: 1.5rem;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-card {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid;
}

.result-card.success {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.result-card.error {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.result-card.warning {
  background: #fffbeb;
  border-left-color: #fbbf24;
}

.result-number {
  font-size: 2rem;
  font-weight: 700;
  color: #001f3d;
}

.result-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.errors-box,
.warnings-box,
.success-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.errors-box {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.errors-box h3 {
  color: #7f1d1d;
  margin-top: 0;
}

.error-list {
  list-style: none;
  padding: 0;
  color: #991b1b;
  font-size: 0.9rem;
}

.error-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fecaca;
}

.error-list li:last-child {
  border-bottom: none;
}

.warnings-box {
  background: #fffbeb;
  border-left-color: #fbbf24;
}

.warnings-box h3 {
  color: #78350f;
  margin-top: 0;
}

.warning-list {
  list-style: none;
  padding: 0;
  color: #92400e;
  font-size: 0.9rem;
}

.warning-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fde68a;
}

.warning-list li:last-child {
  border-bottom: none;
}

.success-box {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.success-box h3 {
  color: #065f46;
  margin-top: 0;
}

.success-box p {
  color: #047857;
  margin-bottom: 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn {
  background: #001f3d;
  color: white;
}

.primary-btn:hover {
  background: #003d5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 61, 0.3);
}

.secondary-btn {
  background: #e2e8f0;
  color: #001f3d;
  border: 1px solid #cbd5e1;
}

.secondary-btn:hover {
  background: #cbd5e1;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .import-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-timetable-import-page {
    padding: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .date-range-group {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    padding: 1.5rem 1rem;
  }

  .drop-icon {
    font-size: 1.5rem;
  }
}
.register-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.register-header {
  margin-bottom: 2rem;
}

.register-header h1 {
  font-size: 2rem;
  color: #001f3d;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.register-header .subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.error-banner {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.success-banner {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Date picker and bulk actions */
.register-controls {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.date-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-picker label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.date-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  flex: 1;
}

.badge-today {
  background: #009cad;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.bulk-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bulk-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Register list */
.register-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.register-header-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.col-name,
.col-status,
.col-reason {
  display: flex;
  align-items: center;
}

.register-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background-color 0.2s;
}

.register-row:hover {
  background-color: #f9f9f9;
}

.register-row:last-child {
  border-bottom: none;
}

.col-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  grid-column: 1;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009cad 0%, #007a8a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.student-info {
  display: flex;
  flex-direction: column;
}

.student-name {
  font-weight: 600;
  color: #001f3d;
}

.student-id {
  font-size: 0.85rem;
  color: #999;
}

.col-status {
  grid-column: 2;
  display: flex;
}

.status-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.status-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.status-btn:hover {
  border-color: #009cad;
  transform: translateY(-2px);
}

.status-btn.active {
  border-color: currentColor;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

.col-reason {
  grid-column: 3;
  display: flex;
}

.reason-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.reason-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.reason-placeholder {
  color: #ccc;
  font-size: 0.9rem;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: #999;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* Footer */
.register-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1rem;
  min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .register-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .register-header-row,
  .register-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .col-name,
  .col-status,
  .col-reason {
    grid-column: 1;
  }

  .register-row {
    padding: 1rem;
  }

  .register-header-row {
    display: none;
  }

  .register-row::before {
    content: attr(data-label);
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
  }

  .status-buttons {
    flex-direction: column;
  }

  .status-btn {
    padding: 0.75rem;
  }
}
.admin-forms-container {
  padding: 2rem;
}

.admin-forms-header {
  margin-bottom: 2rem;
}

.admin-forms-header h2 {
  margin: 0 0 0.5rem 0;
  color: #001f3d;
  font-size: 1.8rem;
}

.admin-forms-header .subtitle {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.form-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.form-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-icon {
  font-size: 2.5rem;
}

.form-card-header h3 {
  margin: 0;
  color: #001f3d;
  font-size: 1.2rem;
  font-weight: 700;
}

.form-description {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
}

.status-badge.sent {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-date {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.status-enabled {
  font-size: 0.8rem;
  color: #009cad;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: #009cad;
  color: white;
  border: 2px solid #009cad;
}

.btn-primary:hover {
  background: #007a8a;
  border-color: #007a8a;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.3);
}

.btn-secondary {
  background: white;
  color: #009cad;
  border: 2px solid #009cad;
}

.btn-secondary:hover {
  background: #f0f8f9;
}

.btn-toggle {
  background: white;
  color: #999;
  border: 2px solid #ddd;
}

.btn-disable {
  color: #dc2626;
  border-color: #dc2626;
}

.btn-disable:hover {
  background: #fee2e2;
}

.btn-enable {
  color: #16a34a;
  border-color: #16a34a;
}

.btn-enable:hover {
  background: #f0fdf4;
}
.session-controls {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.date-input,
.session-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.date-input:focus,
.session-input:focus {
  outline: none;
  border-color: #009cad;
  box-shadow: 0 0 0 3px rgba(0, 156, 173, 0.1);
}

.bulk-actions {
  display: flex;
  gap: 0.75rem;
}

.bulk-actions .btn {
  white-space: nowrap;
}

/* Session-specific register */
.register-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.col-name {
  display: flex;
  align-items: center;
}

.col-status-session {
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-row-session {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background-color 0.2s;
}

.register-row-session:hover {
  background-color: #f9f9f9;
}

.register-row-session:last-child {
  border-bottom: none;
}

.col-status-session {
  grid-column: 2;
  display: flex;
  justify-content: center;
}

.status-buttons-session {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

.status-btn-large {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.status-btn-large:hover {
  border-color: #009cad;
  transform: translateY(-2px);
}

.status-btn-large.active {
  border-color: currentColor;
  box-shadow: 0 2px 8px rgba(0, 156, 173, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .session-controls {
    grid-template-columns: 1fr;
  }

  .bulk-actions {
    grid-column: 1;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .session-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .register-header-row,
  .register-row-session {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .col-name,
  .col-status-session {
    grid-column: 1;
  }

  .register-row-session {
    padding: 1rem;
  }

  .register-header-row {
    display: none;
  }

  .status-buttons-session {
    width: 100%;
    max-width: none;
  }

  .status-btn-large {
    padding: 0.75rem;
  }
}
/* Staff Timetable Page */

.staff-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.staff-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #001f3d;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
  height: auto;
  line-height: 1.5;
}

.staff-header h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin-left: 250px;
  box-sizing: border-box;
}

.header-content h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
}

.staff-main {
  flex: 1;
  margin-left: 250px;
  margin-top: 60px;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 250px;
  background-color: #009cad;
  color: white;
  padding: 1.5rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 99;
}

.nav-menu {
  flex: 1;
}

.nav-section h3 {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-menu li a:hover {
  background-color: rgba(0, 156, 173, 0.7);
  text-shadow: 0 0 8px rgba(248, 103, 24, 0.3);
  box-shadow: inset 4px 0 0 #f86718;
  color: white;
}

.nav-menu li a.active {
  background-color: rgba(0, 0, 31, 0.3);
  border-left: 3px solid #f86718;
  padding-left: calc(1.5rem - 3px);
}

/* Sidebar User Section */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.user-avatar-sidebar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f86718 0%, #d55500 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-sidebar {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-sidebar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timetable Content */
.timetable-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.timetable-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #009cad;
  padding-bottom: 1rem;
}

.timetable-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: #001f3d;
}

.timetable-header p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.error-banner {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Details Panel */
.details-panel {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  border: 2px solid #009cad;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #009cad;
  padding-bottom: 1rem;
}

.details-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #001f3d;
}

.lesson-count {
  background-color: #009cad;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sessions List */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f7 100%);
  border-left: 4px solid #009cad;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.session-card:hover {
  box-shadow: 0 4px 12px rgba(0, 156, 173, 0.15);
  transform: translateY(-2px);
}

.session-card.live {
  background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
  border-left-color: #ffc107;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.session-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: #001f3d;
  margin-bottom: 0.5rem;
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-location {
  color: #555;
  font-size: 0.95rem;
}

.session-subject {
  color: #009cad;
  font-weight: 600;
  font-size: 0.95rem;
}

.session-class {
  color: #666;
  font-size: 0.9rem;
}

.no-sessions,
.no-sessions-day {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1rem;
}

.no-sessions-day {
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* Monthly View */
.monthly-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.month-title {
  min-width: 150px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #001f3d;
  margin: 0;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.btn.btn-secondary {
  background-color: #f0f4f7;
  color: #333;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #ddd;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day-header {
  background-color: #001f3d;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-day {
  background-color: white;
  min-height: 120px;
  padding: 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #e9ecef;
}

.calendar-day.empty {
  background-color: #f8f9fa;
  cursor: default;
  border: none;
}

.calendar-day.active:hover {
  background-color: #f0f7f8;
  border-color: #009cad;
}

.calendar-day.today {
  background-color: #e8f4f5;
  border-color: #009cad;
}

.calendar-day.selected {
  background-color: #009cad;
  border-color: #009cad;
  color: white;
}

.calendar-day.selected .day-number {
  color: white;
}

.calendar-day.selected .lessons-count {
  color: white;
}

.day-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: #001f3d;
  margin-bottom: 0.5rem;
}

.sessions-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lessons-count {
  font-weight: 600;
  font-size: 0.9rem;
  color: #009cad;
}

.calendar-day.selected .lessons-count {
  color: white;
}

/* Lesson Detail Modal */
.lesson-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

/* Loading overlay - ensure it stays behind the fixed header (z-index: 100) */
.timetable-container .admin-dashboard-loading {
  z-index: 50;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lesson-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 85%;
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #001f3d 0%, #002847 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-content {
  padding: 2rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-section {
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  color: #001f3d;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #009cad;
  padding-bottom: 0.5rem;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
}

.modal-row .label {
  font-weight: 600;
  color: #333;
  min-width: 100px;
}

.modal-row .value {
  color: #666;
  text-align: right;
  flex: 1;
  margin-left: 1rem;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-list-item {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 4px solid #009cad;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-list-item:last-child {
  margin-bottom: 0;
}

.member-name {
  font-weight: 600;
  color: #001f3d;
}

.member-role {
  color: #999;
  font-size: 0.9rem;
}

.modal-empty {
  color: #999;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

.no-sessions-day {
  color: #ccc;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .staff-main {
    margin-left: 0;
    padding: 1rem;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .calendar-day {
    min-height: 80px;
    font-size: 0.85rem;
  }

  .day-number {
    font-size: 0.9rem;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  background-color: #f5f5f5;
}

#root {
  width: 100%;
  height: 100%;
}

