/* Component Styles */

/* Buttons */
.btn-sm {
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  background: #e8eaf6;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-normal);
}

.btn-sm:hover {
  background: var(--border-medium);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-login {
  border-radius: var(--radius-full);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-normal);
}

.btn-close:hover {
  opacity: 1;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: var(--spacing-sm);
}

/* Mobile Grid */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 100px;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.tile {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--primary-dark);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.tile > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.mobile-grid lottie-player {
  width: 48px;
  height: 48px;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="file"],
select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-normal);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--primary);
}

input[type="text"]:disabled,
select:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
}

.modal-overlay.show {
  display: flex;
}

/* New Login Modal Card */
.login-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(21, 101, 192, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.btn-close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-close-modal:hover {
  background: #ff4444;
  color: white;
  transform: rotate(90deg);
}

/* Role Switch Tabs */
.role-switch {
  display: flex;
  background: #eef4ff;
  border-radius: 999px;
  padding: 4px;
  margin: 16px 0;
}

.role-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  transition: all 0.3s;
}

.role-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Login Method Toggle (Password/OTP) */
.login-method-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}

.method-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s;
}

.method-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* Login Form Styles */
.login-form {
  margin-top: 16px;
}

.login-form .form-group {
  margin-bottom: 14px;
}

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.login-form input,
.login-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  font-size: 14px;
  transition: all 0.3s;
  background: #fafbfc;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* Gradient Button */
.btn-gradient {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

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

/* Send OTP Button */
.btn-send-otp {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #1565c0;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-send-otp:hover {
  background: #0d47a1;
  transform: translateY(-1px);
}

.btn-send-otp:active {
  transform: translateY(0);
}

/* Alternative Actions */
.alt-actions {
  text-align: center;
  font-size: 12px;
  margin-top: 12px;
  color: #777;
}

.link-text {
  color: #1565c0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.link-text:hover {
  text-decoration: underline;
}

/* Error Message */
.error-message {
  color: #ff4444;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}

/* Profile Button */
.btn-profile {
  border-radius: var(--radius-full);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.btn-profile:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Logout Button */
.btn-logout {
  border-radius: var(--radius-full);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 77, 77, 0.9);
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-logout:hover {
  background: rgba(255, 77, 77, 1);
  transform: translateY(-1px);
}

/* Profile Modal */
.profile-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(21, 101, 192, 0.25);
  position: relative;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.profile-header {
  padding: 24px;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  color: white;
  position: relative;
}

.profile-header h2,
.profile-header p {
  color: white !important;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  overflow-x: auto;
}

.profile-tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
  font-weight: 600;
}

.profile-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 300px);
}

/* Profile Page Tabs (for full page view) */
.profile-page-tabs {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding: 6px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  scrollbar-width: thin;
}

.profile-page-tabs::-webkit-scrollbar {
  height: 4px;
}

.profile-page-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.profile-page-tab {
  flex: 0 0 auto;
  min-width: 120px;
  text-align: center;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  white-space: nowrap;
  margin: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-page-tab .tab-icon {
  font-size: 18px;
  display: block;
}

.profile-page-tab .tab-label {
  font-size: 11px;
  display: block;
}

.profile-page-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

.profile-page-tab.active {
  background: white;
  color: #667eea;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.profile-page-tab.active .tab-icon {
  font-size: 20px;
}

.profile-page-content {
  animation: fadeInUp 0.4s ease-out;
}

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

/* Profile Header Card */
.profile-header-card {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-avatar-large {
  font-size: 80px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.profile-name {
  margin: 12px 0;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.profile-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.profile-card {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.profile-card:hover::before {
  left: 100%;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gradient-card-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-card-green {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-card-purple {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-card-orange {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.profile-card .card-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.profile-card .card-title {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.profile-card .card-value {
  font-size: 20px;
  font-weight: 700;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.rating-stars .star {
  font-size: 32px;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  display: inline-block;
}

.rating-stars .star:hover {
  opacity: 0.8;
  transform: scale(1.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.info-item {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.info-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

/* Info Edit Inputs */
.info-edit {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #1565c0;
  font-size: 14px;
  background: #fff;
  font-weight: 500;
  outline: none;
}

.info-edit:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
}

/* Quiz History */
.quiz-history-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.quiz-history-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.quiz-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quiz-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.quiz-score {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.quiz-score.pass {
  background: #d4edda;
  color: #155724;
}

.quiz-score.fail {
  background: #f8d7da;
  color: #721c24;
}

.quiz-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

/* Support Tickets */
.ticket-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #1565c0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.ticket-item.high {
  border-left-color: #dc3545;
}

.ticket-item.medium {
  border-left-color: #ffc107;
}

.ticket-item.low {
  border-left-color: #28a745;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.ticket-subject {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.ticket-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-status.open {
  background: #fff3cd;
  color: #856404;
}

.ticket-status.closed {
  background: #d4edda;
  color: #155724;
}

.ticket-meta {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.ticket-description {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 14px;
}

/* Settings Section */
.settings-section {
  max-width: 400px;
  margin: 0 auto;
}

/* Old Modal Card (for other modals) */.modal-card {
  width: min(560px, 95%);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.modal-title {
  font-weight: 700;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.form-group input,
.form-group select {
  width: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* Utility Classes */
.muted {
  color: var(--text-soft);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.page-title {
  font-weight: 700;
  font-size: 20px;
}

/* Quiz Components */
.quiz-question {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-md);
}

.quiz-question-title {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.quiz-option {
  display: block;
  margin: var(--spacing-sm) 0;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.quiz-option:hover {
  background: var(--bg-hover);
}

.quiz-option input {
  margin-right: var(--spacing-sm);
}

/* Search Results */
.search-result {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-md);
}

.search-result-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.search-result-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--primary);
  margin-left: var(--spacing-sm);
}

/* Admin Components */
.admin-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.logo-preview {
  margin-top: var(--spacing-md);
}

.logo-preview img {
  max-width: 120px;
  max-height: 60px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Notification Styles */
.notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4757;
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 350px;
  max-height: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  border: 1px solid #e5e7eb;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread {
  background: #f8fafc;
}

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

.notification-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.notification-item-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.notification-item-message {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}

.notification-item-time {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 6px;
}

.notification-indicator {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  margin-left: 8px;
  margin-top: 6px;
}

.btn-notification {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

/* Responsive styles for notifications */
@media (max-width: 767px) {
  .notification-dropdown {
    width: 100vw;
    max-width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
  }
}

/* Form Grid Layouts */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

/* Enhanced Form Styling for Movement Details */
.logbook-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.logbook-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.logbook-section-header {
  display: flex;
  align-items: center;
  margin: 0 0 var(--spacing-md) 0;
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
}

.logbook-section-header .icon {
  font-size: 20px;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.logbook-form-group {
  margin-bottom: var(--spacing-md);
}

.logbook-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logbook-form-group input,
.logbook-form-group select,
.logbook-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-normal);
  background: white;
}

.logbook-form-group input:focus,
.logbook-form-group select:focus,
.logbook-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.logbook-form-group input:hover,
.logbook-form-group select:hover,
.logbook-form-group textarea:hover {
  border-color: var(--primary-light);
}

.logbook-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-light);
}

.logbook-section-title .section-number {
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Checkbox and Textarea Styling */
.logbook-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.logbook-checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border: 2px solid var(--border-light);
  border-radius: 4px;
}

.logbook-textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-normal);
  background: white;
  font-family: system-ui, -apple-system, sans-serif;
  resize: vertical;
  min-height: 100px;
}

.logbook-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.logbook-checkbox-label {
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  flex: 1;
}

/* Logbook Records Table */
.logbook-records-container {
  overflow-x: auto;
  margin-bottom: 16px;
}

.logbook-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logbook-table th,
.logbook-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.logbook-table th {
  background: var(--bg-sidebar);
  font-weight: 600;
  color: var(--text-main);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logbook-table tr:last-child td {
  border-bottom: none;
}

.logbook-table tr:hover {
  background-color: #f8fafc;
}

.logbook-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logbook-btn {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.logbook-btn-view {
  background: var(--primary);
  color: white;
}

.logbook-btn-edit {
  background: var(--secondary);
  color: white;
}

.logbook-btn-delete {
  background: var(--danger);
  color: white;
}

.logbook-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Logbook Buttons Container */
.logbook-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logbook-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--primary);
  color: white;
  font-size: 14px;
}

.logbook-btn .btn-icon {
  font-size: 16px;
}

.logbook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(21, 101, 192, 0.25);
}

.search-filter-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.filter-select {
  padding: 10px 14px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: white;
  min-width: 150px;
}

.export-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.export-btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn-pdf {
  background: #dc3545;
  color: white;
}

.export-btn-excel {
  background: #28a745;
  color: white;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   NOTIFICATION BELL & WIDGET STYLES
   ======================================== */

/* Notification Bell Container */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell .btn-notification {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.notification-bell .btn-notification:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.notification-bell .btn-notification:hover svg {
  animation: bellRing 0.5s ease;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
  border: 2px solid #1565c0;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 380px;
  max-width: 95vw;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownSlideIn 0.3s ease;
}

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

.notification-dropdown .notification-item:hover {
  background: #f8fafc;
}

/* Notification Widget Section on Dashboard */
.notification-widget-section {
  animation: fadeIn 0.5s ease;
}

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

.notification-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* Notice Cards */
.notice-card {
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.notice-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.notice-list::-webkit-scrollbar {
  width: 6px;
}

.notice-list::-webkit-scrollbar-track {
  background: transparent;
}

.notice-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Responsive adjustments for notification widget */
@media (max-width: 768px) {
  .notification-widget-grid {
    grid-template-columns: 1fr;
  }
  
  .notification-dropdown {
    width: 95vw;
    right: -40px;
  }
}
