/* Tailwind CSS disabled temporarily due to PostCSS config issues */
/* @tailwind base; */
/* @tailwind components; */
/* @tailwind utilities; */

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
}

/* Custom scrollbar - moved to Layout.css for main-content only */

/* Spinner animation for loading states */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Global Loading Spinner */
.spinner-circular-square {
   width: 56px;
   height: 56px;
   border-radius: 50%;
   border: 4px solid rgba(0, 0, 0, 0.1);
   border-top-color: var(--color-primary-500);
   animation: spinner-circular-square-anim 1.0s linear infinite;
}

/* Size variants */
.spinner-small {
   width: 32px;
   height: 32px;
}

.spinner-medium {
   width: 56px;
   height: 56px;
}

.spinner-large {
   width: 80px;
   height: 80px;
}

@keyframes spinner-circular-square-anim {
   0% {
      transform: rotate(0deg);
   }
   100% {
      transform: rotate(360deg);
   }
}

/* Centered loading container */
.loading-container {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 40px;
   min-height: calc(100vh - 200px);
   width: 100%;
}

.loading-container-fullscreen {
   display: flex;
   justify-content: center;
   align-items: center;
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(255, 255, 255, 0.8);
   z-index: 9999;
}
.left-sidebar {
  width: 240px;
  background: var(--color-bg-primary);
  padding: 24px;
  border-right: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  text-align: center;
}

.logo-image {
  width: 80%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.nav-container {
  flex: 1 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  margin-right: -24px; /* Bù lại padding của sidebar để scrollbar sát cạnh */
  padding-right: 24px; /* Thêm padding để content không bị sát scrollbar */
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

/* Custom scrollbar cho nav-container - chỉ hiện khi hover sidebar */
.nav-container::-webkit-scrollbar {
  width: 4px;
}

.nav-container::-webkit-scrollbar-track {
  background: transparent;
}

.nav-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.left-sidebar:hover .nav-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
}

.left-sidebar:hover .nav-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.nav-item {
  margin-bottom: 8px;
  background: transparent;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 4px;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item:has(.nav-link.active) {
  background: white;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--color-gray-500);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: transparent;
  overflow: hidden;
}

/* Slide effect background for nav links */
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
  border-radius: 6px;
}

.nav-link.active::before {
  transform: translateX(0);
}

.nav-link:hover:not(.active)::before {
  transform: translateX(0);
}

.nav-link.active {
  color: white;
}

.nav-link:hover:not(.active) {
  color: white !important;
}

/* Ensure content is above the sliding background */
.nav-link > * {
  position: relative;
  z-index: 2;
}


.nav-link.active .nav-icon,
.nav-link:hover:not(.active) .nav-icon,
.nav-link.active .nav-text,
.nav-link:hover:not(.active) .nav-text {
  color: white !important;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.upgrade-section {
  margin-top: auto;
}

.user-section {
  background: var(--color-bg-secondary);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
}

/* .user-info moved to global */

/* .user-avatar moved to global */

/* .user-details moved to global */

/* .user-name moved to global */

.user-role {
  font-size: 12px;
  color: var(--color-gray-500);
  font-weight: 500;
}

/* .logout-btn moved to global */

/* Motivation styling */
.motivation-icon {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
  animation: sparkle 2s ease-in-out infinite;
}

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

.motivation-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.motivation-emoji {
  font-size: 16px;
}

.motivation-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Upgrade Plan Box */
.upgrade-plan-box {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  border-radius: 16px;
  padding: 18px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  flex-shrink: 0;
}

.upgrade-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.upgrade-icon svg {
  color: var(--color-warning-400);
}

.upgrade-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.upgrade-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.feature-item svg {
  color: var(--color-success-500);
  flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 968px) {
  .left-sidebar {
    height: calc(100vh - 60px);
    top: 0;
    position: relative;
  }
}

.upgrade-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.upgrade-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
/* Profile Modal Overlay - Higher z-index than other modals */
.profile-modal-overlay {
  z-index: 10001 !important;
}

/* Profile Modal uses global .modal-container from modal-common.css */

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

/* Profile Modal header uses global .modal-header from modal-common.css */

.header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header icon uses global .modal-header-icon from modal-common.css */

/* .header-info h2 moved to global modal-common.css */

.profile-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Close button uses global .modal-header-btn from modal-common.css */

.profile-modal-content {
  padding: 24px 32px;
  position: relative;
}

/* Profile Form Grid - Vertical Layout */
.profile-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

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

.profile-modal-content .form-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
  padding-left: 5px;
}

.profile-modal-content .form-label svg {
  color: var(--color-primary-500);
  flex-shrink: 0;
  margin-top: -3px;
}

.form-input {
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

.form-input.disabled {
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  cursor: not-allowed;
  border-color: var(--color-gray-300);
}

.form-input.disabled:focus {
  transform: none;
  box-shadow: none;
}

.role-display {
  padding: 14px 18px;
  background: var(--color-gray-100);
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

/* Cancel button uses global .btn-cancel from button-global.css */

/* Save button uses global .btn-save from button-global.css */

/* Disabled button styles use global styles from button-global.css */

/* Avatar Section */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: none;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  min-height: -webkit-fit-content;
  min-height: fit-content;
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-bg-primary);
  box-shadow: 0 0 0 3px var(--color-primary-500), 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
  flex-shrink: 0;
  padding: 5px;
}

.avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--color-primary-600), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.avatar-container-static {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
  flex-shrink: 0;
  cursor: default;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  border-radius: 50%;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: white;
  pointer-events: none;
}

.avatar-container:hover .avatar-overlay {
  opacity: 1;
}

.camera-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.upload-spinner {
  opacity: 1 !important;
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.avatar-hint {
  font-size: 13px;
  color: var(--color-gray-600);
  text-align: center;
  margin: 8px 0 0 0;
  font-weight: 500;
}


.hidden-file-input {
  display: none;
}

/* Password Change Button */
.text-btn-left {
  background: none;
  border: none;
  color: var(--color-primary-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  padding: 0;
}

.text-btn-left:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.text-btn-left svg {
  width: 18px;
  height: 18px;
}

.action-buttons-right {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.password-form {
  animation: slideDown 0.3s ease-out;
}

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

.password-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.password-form-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0;
}

.password-form-header h3 svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-500);
}

.close-password-btn {
  background: none;
  border: none;
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-password-btn:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.close-password-btn svg {
  width: 20px;
  height: 20px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--color-gray-700);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.save-password-btn {
  width: 100%;
  padding: 12px 24px;
  margin-top: 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-password-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-success-300);
}

.save-password-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 98%;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 16px;
  }
  
  .header-info {
    gap: 12px;
  }
  
  /* Responsive icon styles handled by global .modal-header-icon */
  
  /* .header-info h2 responsive moved to global modal-common.css */
  
  .profile-modal-content {
    padding: 20px;
  }
  
  .profile-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .avatar-section {
    margin-bottom: 20px;
  }
  
  .avatar-container {
    width: 100px;
    height: 100px;
    border: 4px solid white;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-cancel,
  .btn-save {
    width: 100%;
    justify-content: center;
  }
}
.right-sidebar {
  width: 320px;
  background: var(--color-bg-primary);
  border-left: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  padding: 24px;
}

.profile-section {
  padding: 24px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-avatar-container {
  position: relative;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  border: 6px solid var(--color-bg-primary);
  box-shadow: 0 0 0 3px var(--color-primary-500);
}

.profile-avatar-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--color-bg-primary);
  box-shadow: 0 0 0 3px var(--color-primary-500);
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  text-align: center;
}

.profile-id {
  font-size: 14px;
  color: var(--color-gray-500);
  text-align: center;
}

.profile-actions {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

/* .action-btn moved to global */

.action-btn .material-icons {
  font-size: 18px !important;
}

/* .logout-btn moved to global */

/* .action-btn:hover moved to global */

.chat-divider {
  padding: 16px 0;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.chat-divider::before {
  content: '';
  position: absolute;
  left: 0px;
  right: 0px;
  top: 50%;
  height: 1px;
  background: #6b7280;
  z-index: 1;
}

.chat-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  background: #ffffff;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* .chat-messages moved to global */

/* .chat-message moved to global */

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Chat messages - tất cả cùng 1 bên như cũ */

/* .message-content moved to global */

/* .message-header moved to global */

.message-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* .message-time moved to global */

.message-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 4px;
}

.message-tag {
  font-size: 12px;
  color: #6b7280;
}

/* .chat-input moved to global */

.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 8px 16px;
}

.chat-input-field {
  flex: 1 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: #374151;
}

.chat-input-field::placeholder {
  color: #9ca3af;
}

/* Specific cho RightSidebar để override ZoomRoom.css */
.right-sidebar .send-btn {
  background: none !important;
  border: none !important;
  color: #6b7280 !important;
  cursor: pointer;
  padding: 4px;
  outline: none !important;
}

.right-sidebar .send-btn:hover {
  background: none !important;
  border: none !important;
  outline: none !important;
  color: var(--color-primary-500) !important;
}

.right-sidebar .send-btn:focus {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 968px) {
  .right-sidebar {
    height: calc(100vh - 60px);
    top: 0;
    position: relative;
  }
}
.app-layout {
  display: flex;
  height: 100vh;
  background-color: var(--color-bg-tertiary);
  position: relative;
}

.main-content {
  flex: 1 1;
  margin-left: 240px;
  margin-right: 320px;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 100vh;
  max-width: calc(100vw - 560px);
  padding: 0 32px 60px 32px;
  transition: margin 0.3s ease;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .main-content {
    max-width: calc(100vw - 240px);
  }
}

@media (max-width: 968px) {
  .main-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    padding: 60px 20px;
  }
}

/* ===================================================================
   MOBILE HEADER STYLES
   =================================================================== */

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 1000;
  display: none;
}

.mobile-header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  max-width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  border: none;
  background: none;
  border-radius: 12px;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--color-gray-100);
  color: var(--color-primary-600);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.menu-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Header Center */
.mobile-header-center {
  display: flex;
  align-items: center;
  flex: 1 1;
  justify-content: center;
  max-width: calc(100% - 88px); /* Account for buttons on sides */
}

.mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary-600);
}

.mobile-app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile User Button */
.mobile-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-user-btn:hover {
  background: var(--color-gray-100);
}

.mobile-user-btn:active {
  transform: scale(0.95);
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  border: 2px solid var(--color-primary-200);
}

.mobile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-avatar-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  animation: overlayFadeIn 0.2s ease forwards;
}

@keyframes overlayFadeIn {
  to { opacity: 1; }
}

/* ===================================================================
   SIDEBAR WRAPPER STYLES
   =================================================================== */

.sidebar-wrapper {
  position: relative;
  z-index: 10;
}

.left-sidebar-wrapper {
  /* Default desktop styles - no changes needed */
}

.right-sidebar-wrapper {
  /* Default desktop styles - no changes needed */
}

/* ===================================================================
   RESPONSIVE LAYOUT ADJUSTMENTS
   =================================================================== */

/* Show mobile header and adjust layout for tablets and phones */
@media (max-width: 968px) {
  .mobile-header {
    display: block;
  }

  /* Hide sidebars by default on mobile */
  .sidebar-wrapper {
    position: fixed;
    top: 60px;
    bottom: 0;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .left-sidebar-wrapper {
    left: 0;
    width: 280px;
  }

  .left-sidebar-wrapper.open {
    transform: translateX(0);
  }

  .right-sidebar-wrapper {
    right: 0;
    width: 320px;
    transform: translateX(100%);
  }

  .right-sidebar-wrapper.open {
    transform: translateX(0);
  }
}

/* Smaller mobile adjustments */
@media (max-width: 480px) {
  .mobile-header-content {
    padding: 0 12px;
  }

  .mobile-app-name {
    font-size: 16px;
  }

  .left-sidebar-wrapper {
    width: 90vw !important;
    max-width: 320px !important;
  }

  .right-sidebar-wrapper {
    width: 90vw !important;
    max-width: 320px !important;
  }
}

@media (max-width: 360px) {
  .mobile-header-content {
    padding: 0 8px;
  }

  .mobile-app-name {
    font-size: 14px;
  }

  .left-sidebar-wrapper {
    width: 95vw;
    max-width: 280px;
  }

  .right-sidebar-wrapper {
    width: 95vw;
    max-width: 280px;
  }
}

/* Hide scrollbar completely */
.main-content::-webkit-scrollbar {
  display: none !important;
}

.main-content {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

/* Basic styling for page content - used inside main-content */
.page-content {
  width: 100%;
  height: auto;
  min-height: 100%;
}
/* Modern Login Page Design */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

/* Animated Background */
.login-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--color-primary-400) 0%, 
    var(--color-primary-500) 25%, 
    var(--color-primary-600) 50%, 
    var(--color-primary-700) 75%, 
    var(--color-primary-500) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.7;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Shapes Animation */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float 20s infinite linear;
  will-change: transform;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  animation-delay: 7s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 14s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 70%;
  animation-delay: 3s;
}


@keyframes float {
  0% {
    transform: translate3d(0px, 0px, 0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(0px, -100px, 0) rotate(180deg);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(0px, 0px, 0) rotate(360deg);
    opacity: 0.6;
  }
}

/* Centered Content Container */
.login-content {
  max-width: 800px;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(25px);
          backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 70px 40px;
  position: relative;
  z-index: 2;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 5px solid transparent;
  background-clip: padding-box;
  animation: slideInUp 1s ease-out;
  display: flex;
  align-items: center;
  gap: 40px;
}

.login-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border-radius: 28px;
  z-index: 1;
  pointer-events: none;
}

.login-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(
    90deg,
    transparent,
    transparent,
    var(--color-primary-400),
    var(--color-primary-500),
    var(--color-primary-600),
    var(--color-primary-700),
    var(--color-primary-500),
    transparent,
    transparent
  );
  background-size: 300% 100%;
  border-radius: 33px;
  z-index: -1;
  animation: borderFlow 20s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 5px;
}

@keyframes borderFlow {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

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

/* Left Side - Brand */
.login-left {
  flex: 1 1;
  position: relative;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.brand-top-section {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}


@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 12px 28px rgba(0, 0, 0, 0.15),
      0 6px 16px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 16px 35px rgba(0, 0, 0, 0.2),
      0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

.brand-icon {
  width: 140px;
  height: 140px;
  color: var(--color-primary-500);
}

.brand-icon-image {
  width: 80%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-middle-section {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #374151, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  width: 100%;
  text-align: center;
}


.brand-bottom-section {
  flex: 1 1 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.brand-slogan {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-gray-600);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Removed unused brand-features styles */

/* Divider */
.login-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-gray-300);
  position: relative;
  z-index: 2;
}

/* Right Side - Form */
.login-right {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Form Container */
.login-form-container {
  width: 100%;
}


.login-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #374151, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  z-index: 1;
}

.login-input {
  width: 100%;
  padding: 14px 50px 14px 50px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
  font-weight: 500;
}

.login-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 
    0 0 0 4px rgba(var(--color-primary-500), 0.12),
    0 8px 25px rgba(var(--color-primary-500), 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

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

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #9ca3af;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0;
}

.forgot-password {
  color: var(--color-primary-500);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: block;
  text-align: right;
  margin-top: 8px;
}

.forgot-password:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}


/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  color: #dc2626;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-icon {
  font-size: 1.2rem;
}

/* Demo Accounts */
.demo-accounts {
  margin-top: 25px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.demo-icon {
  font-size: 1.2rem;
}

.demo-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin: 0;
}

.demo-account {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.demo-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.demo-credentials {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-credentials span {
  font-size: 0.85rem;
  color: #78350f;
}

.demo-note {
  font-size: 0.8rem;
  color: #92400e;
  margin: 10px 0 0 0;
  font-style: italic;
}

.demo-note code {
  background: rgba(146, 64, 14, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-content {
    max-width: 350px;
    padding: 30px 25px;
    margin: 20px;
    flex-direction: column;
  }
  
  .login-divider {
    display: none;
  }
  
  .brand-title {
    font-size: 2rem;
  }
  
  .brand-subtitle {
    font-size: 1rem;
  }
  
  .brand-description {
    font-size: 0.85rem;
  }
  
  .login-welcome {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px 15px;
  }
  
  .login-content {
    max-width: 320px;
    padding: 25px 20px;
  }
  
  /* Logo giữ nguyên kích thước trên màn hình nhỏ */
  
  .brand-title {
    font-size: 1.8rem;
  }
}
/* =============================================================================
   GLOBAL BUTTON STYLES - Sử dụng cho tất cả các trang
   ============================================================================= */

/* Global Add Button */
.add-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* Global Add User Button */
.add-user-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
  min-height: 48px;
}

/* Removed shine effect for cleaner icon-only buttons */

/* Text slide effect for add-user-btn */
.add-user-btn .btn-text {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.5s ease;
}

.add-user-btn:hover .btn-text {
  transform: translateX(-150%);
  opacity: 0;
}

.add-user-btn .btn-icon {
  position: absolute;
  transform: translateX(150%);
  opacity: 0;
  transition: all 0.5s ease;
}

.add-user-btn:hover .btn-icon {
  transform: translateX(0);
  opacity: 1;
}

.add-btn:hover {
  /* Zoom in slightly on hover */
  transform: scale(1.05);
}

.add-btn:active,
.add-user-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px var(--color-primary-300);
}

.add-btn:focus,
.add-user-btn:focus {
  outline: none;
  box-shadow: 0 4px 16px var(--color-primary-300), 0 0 0 3px var(--color-primary-200);
}

/* Icon trong button */
.add-user-icon,
button svg,
.btn-save svg,
.btn-cancel svg,
.edit-btn svg,
.delete-btn svg,
.success-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.add-user-icon {
  color: white;
}

/* General button icon hover effect - rotate 180 degrees */
.btn-save:hover svg,
.btn-cancel:hover svg,
.edit-btn:hover svg,
.delete-btn:hover svg,
.success-btn:hover svg {
  transform: rotate(180deg);
}

/* Plus icon rotation for add buttons - 180 degrees rotation */
.add-btn:hover svg,
.add-user-btn:hover svg {
  transform: rotate(180deg);
}

/* Global Delete Button */
.delete-btn {
  background: linear-gradient(135deg, var(--color-error-500), var(--color-error-600));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  background: linear-gradient(135deg, var(--color-error-600), var(--color-error-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-error-200);
}

/* Global Edit Button */
.edit-btn {
  background: linear-gradient(135deg, var(--color-warning-500), var(--color-warning-600));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: linear-gradient(135deg, var(--color-warning-600), var(--color-warning-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-warning-200);
}

/* Global Success Button */
.success-btn {
  background: linear-gradient(135deg, var(--color-success-500), var(--color-success-600));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: linear-gradient(135deg, var(--color-success-600), var(--color-success-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-success-200);
}

/* =============================================================================
   GLOBAL TAG STYLES - Tags với màu nền khác nhau
   ============================================================================= */

/* Base Tag Style */
.tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  margin-right: 8px;
}

.tag:last-child {
  margin-right: 0;
}

/* Tag Colors - Pastel Theme */

/* Class and Course Tags - Soft Blue Pastel */
.tag-class {
  background-color: #E6F3FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

/* Teacher Tags - Soft Green Pastel */
.tag-teacher {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #DCFCE7;
}

/* Status Tags - Soft Purple Pastel */
.tag-status {
  background-color: #FAF5FF;
  color: #9333EA;
  border: 1px solid #F3E8FF;
}

/* Student Tags - Soft Pink Pastel */
.tag-student {
  background-color: #FEF7F7;
  color: #DC2626;
  border: 1px solid #FEE2E2;
}

/* Time and Date Tags - Soft Orange Pastel */
.tag-time {
  background-color: #FFF7ED;
  color: #EA580C;
  border: 1px solid #FFEDD5;
}

/* Info Tags - Soft Teal Pastel */
.tag-info {
  background-color: #F0FDFA;
  color: #0D9488;
  border: 1px solid #CCFBF1;
}

/* Warning Tags - Soft Yellow Pastel */
.tag-warning {
  background-color: #FEFCE8;
  color: #CA8A04;
  border: 1px solid #FEF3C7;
}

/* Success Tags - Soft Mint Pastel */
.tag-success {
  background-color: #F0FDF4;
  color: #059669;
  border: 1px solid #D1FAE5;
}

/* Error Tags - Soft Red Pastel */
.tag-error {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* Secondary Tags - Soft Gray Pastel */
.tag-secondary {
  background-color: #F9FAFB;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

/* =============================================================================
   GLOBAL TABLE STYLES - Sử dụng cho tất cả các bảng
   ============================================================================= */

/* Global Table Container */
.global-table-container {
  background: var(--color-bg-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
  width: 100%;
}

/* Global Table */
.global-table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}

/* Global Table Header */
.global-table thead tr {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-gray-200);
}

.global-table th {
  padding: 20px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Global Table Body */
.global-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--color-bg-tertiary);
}

.global-table tbody tr:hover {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.global-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.global-table tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
}

.global-table td {
  padding: 16px;
  vertical-align: middle;
  font-size: 14px;
  color: var(--color-gray-700);
}

/* Global Table Column Utilities */
.global-table th,
.global-table td {
  width: auto;
  white-space: nowrap;
}

/* STT Column */
.global-table th:first-child,
.global-table td:first-child {
  width: -webkit-fit-content;
  width: fit-content;
  text-align: center !important;
}

/* Actions Column */
.global-table th:last-child,
.global-table td:last-child {
  width: -webkit-fit-content;
  width: fit-content;
  text-align: center;
}

/* Global Table Footer */
.global-table-footer {
  background: #ffffff;
  padding: 16px;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-table-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-table-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Global STT Number Styling */
.global-stt-number {
  text-align: center;
  font-weight: 600;
  color: var(--color-gray-500);
  font-size: 14px;
}

/* Global Pagination Styles */
.page-info {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.pagination-controls {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
  font-size: 12px;
  color: #6b7280;
}

.pagination-btn:hover {
  background: var(--color-gray-50);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn.active {
  background: var(--color-primary-500);
  color: white;
  border-color: var(--color-primary-500);
  box-shadow: 0 2px 4px var(--color-primary-200);
}

.pagination-btn.disabled,
.pagination-btn:disabled {
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border-color: var(--color-gray-200);
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-btn.disabled:hover,
.pagination-btn:disabled:hover {
  background: var(--color-gray-100);
  box-shadow: none;
  transform: none;
}

/* =============================================================================
   GLOBAL FORM STYLES - Sử dụng cho tất cả forms
   ============================================================================= */

/* Global Form Group */
.form-group {
  margin-bottom: 20px;
}

/* Global Form Label */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  margin-bottom: 10px;
}

/* Global Form Input */
.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-gray-700);
  background: var(--color-bg-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Global Form Help Text */
.form-help-text {
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 6px;
}

/* Global Form Select */
.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-gray-700);
  background: var(--color-bg-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Global Form Textarea */
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-gray-700);
  background: var(--color-bg-primary);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Global Form Row */
/* .form-row moved to global */

.form-row .form-group {
  flex: 1 1;
}

/* =============================================================================
   GLOBAL MODAL STYLES - Sử dụng cho tất cả modals
   ============================================================================= */

/* Global 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: 9999;
  animation: fadeIn 0.2s ease-out;
}

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

/* Global Modal Container */
/* .modal-container moved to global */

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

/* Global Modal Header */
/* .modal-header moved to global */

/* Global Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 32px 0 0  0;
  border-top: 1px solid var(--color-gray-200);
}

/* Global Button Base */
.btn-cancel,
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

/* Shine Effect for all buttons */
.btn-cancel::before,
.btn-save::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-cancel:hover:not(:disabled)::before,
.btn-save:hover:not(:disabled)::before {
  left: 100%;
}

/* Global .btn-cancel */
.btn-cancel {
  border: 2px solid var(--color-error-500);
  background: var(--color-error-500);
  color: white;
  transition: all 0.3s ease;
  justify-content: center;
}

.btn-cancel:hover:not(:disabled) {
  background: white;
  color: var(--color-error-500);
  border-color: var(--color-error-500);
}

.btn-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Global .btn-save */
.btn-save {
  border: 2px solid var(--color-primary-500);
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--color-primary-600-rgb), 0.2);
  justify-content: center;
}

.btn-save:hover:not(:disabled) {
  background: white;
  color: var(--color-primary-500);
  border-color: var(--color-primary-500);
}

.btn-save:disabled {
  background: var(--color-gray-400);
  cursor: not-allowed;
  box-shadow: none;
  border: 2px solid var(--color-gray-400);
}


/* Global .stat-item */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  height: 100%;
  min-height: 80px;
}

/* Global .schedule-card */
.schedule-card {
  background: var(--color-gray-50);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.schedule-card:hover {
  background: var(--color-gray-100);
  border-color: var(--color-primary-500);
}

/* Global .schedule-time */
.schedule-time {
  font-size: 14px;
  color: var(--color-gray-500);
}

/* Global .schedule-description */
.schedule-description {
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* Global .zoom-details */
.zoom-details {
  font-size: 13px;
  color: var(--color-warning-800);
  line-height: 1.6;
}

/* Global .empty-state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed #c6c6c9;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  margin-top: 32px;
}

/* Global .user-info */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Global .user-avatar-cell - Used in all user tables */
.user-avatar-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Global user avatar images size in tables */
.user-avatar-cell img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 10px;
  object-fit: cover;
}

/* Global .user-avatar */
.user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

/* Global .user-details */
.user-details {
  flex: 1 1;
  min-width: 0;
}

/* Global .user-name */
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-800);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Global .logout-btn */
.logout-btn {
  background: var(--color-error-500);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background: var(--color-error-600);
}

/* Logout button icon styles */
.logout-btn svg,
.logout-btn.action-btn svg {
  color: var(--color-error-500) !important;
  transition: color 0.2s ease;
}

.logout-btn:hover svg,
.logout-btn.action-btn:hover svg {
  color: white !important;
}

/* Global .meeting-controls */
.meeting-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Global .action-btn */
.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-700);
}

/* Global .chat-messages */
.chat-messages {
  flex: 1 1;
  overflow-y: auto;
  background: white;
  margin-bottom: 20px;
}

/* Global .chat-message */
.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* Global .message-content */
.message-content {
  flex: 1 1;
}

/* Global .message-header */
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* Global .message-time */
.message-time {
  font-size: 12px;
  color: #9ca3af;
}

/* Global .chat-input */
.chat-input {
  background: white;
  border-radius: 15px;
}

/* Old loading spinner removed - replaced with LoadingSpinner component */

/* Global .header-subtitle */
.header-subtitle {
  color: var(--color-gray-500);
  font-size: 14px;
  margin: 0;
}

/* Global .header-right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Global .class-card */
.class-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
}

.class-card:hover {
  border-color: var(--color-gray-200);
}

/* Global .class-avatar */
.class-avatar {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

/* =============================================================================
   GLOBAL STATUS AND ROLE BADGE STYLES - Sử dụng cho tất cả status and role badges
   ============================================================================= */

/* Global Status Badge Base */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.2s ease;
  gap: 6px;
  white-space: nowrap;
}

/* Active and Inactive Status for User Tables */
.status-badge.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge.inactive {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Schedule Status Badges */
.status-badge.status-pending {
  background-color: #FEF3C7;
  color: #D97706;
  border: 1px solid #FBBF24;
}

.status-badge.status-active {
  background-color: #D1FAE5;
  color: #059669;
  border: 1px solid #34D399;
}

.status-badge.status-completed {
  background-color: #E5E7EB;
  color: #374151;
  border: 1px solid #9CA3AF;
}

.status-badge.status-default {
  background-color: #F3F4F6;
  color: #6B7280;
  border: 1px solid #D1D5DB;
}

/* Global Role Badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.2s ease;
  gap: 6px;
  white-space: nowrap;
}

.role-badge.admin {
  background: linear-gradient(135deg, #fef2f2 0%, #fce7e7 100%);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.role-badge.staff {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.role-badge.teacher {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.role-badge.student {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

/* =============================================================================
   GLOBAL FONT CLASSES - Roboto Font Family
   ============================================================================= */

/* Roboto Regular - Main content font */
.font-roboto {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.font-roboto-medium {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.font-roboto-bold {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* Roboto Condensed - Space-saving font for sidebars, labels */
.font-roboto-condensed {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
}

.font-roboto-condensed-medium {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
}

.font-roboto-condensed-bold {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
}

/* Roboto Mono - Monospace font for code, console, input */
.font-roboto-mono {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
}

.font-roboto-mono-medium {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
}

.font-roboto-mono-bold {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
}

/* =============================================================================
   FONT WEIGHT UPDATES FOR EXISTING ELEMENTS
   ============================================================================= */

/* Headers use Roboto Bold */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Buttons use Roboto Medium for better readability */
.btn-cancel, .btn-save, .add-btn, .add-user-btn {
  font-weight: 500;
}

/* Form labels use Roboto Medium */
.form-label {
  font-weight: 500;
}

/* Status badges and role badges use Roboto Medium */
.status-badge, .role-badge, .tag {
  font-weight: 500;
}

/* Table headers use Roboto Condensed Bold for space efficiency */
.global-table th {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
}

/* =============================================================================
   RESPONSIVE STYLES FOR GLOBAL COMPONENTS
   ============================================================================= */

/* Medium screens (tablets) */
@media (max-width: 968px) {
  .add-user-btn {
    padding: 12px;
    font-size: 13px;
    min-height: 44px;
  }

  .form-input, .form-select, .form-textarea {
    padding: 10px;
    font-size: 14px;
  }

  .form-label {
    font-size: 13px;
  }

  .global-table {
    font-size: 13px;
  }

  .global-table th,
  .global-table td {
    padding: 10px 8px;
  }

  .modal-container {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
}

/* Small screens (phones) */
@media (max-width: 768px) {
  .form-input, .form-select, .form-textarea {
    padding: 8px;
    font-size: 13px;
  }

  .form-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form-group {
    gap: 6px;
  }

  .global-table {
    font-size: 12px;
  }

  .global-table th,
  .global-table td {
    padding: 8px 6px;
  }

  .modal-container {
    margin: 10px;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

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

  .tag {
    font-size: 10px;
    padding: 3px 6px;
  }

  .status-badge, .role-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Extra small screens (small phones) */
@media (max-width: 480px) {

  .form-input, .form-select, .form-textarea {
    padding: 6px;
    font-size: 12px;
    border-radius: 8px;
  }

  .form-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .global-table {
    font-size: 11px;
  }

  .global-table th,
  .global-table td {
    padding: 6px 4px;
  }

  .modal-container {
    margin: 8px;
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .modal-header {
    padding: 12px;
  }

  .modal-body {
    padding: 12px;
  }

  .modal-title {
    font-size: 16px;
  }

  .tag {
    font-size: 9px;
    padding: 2px 4px;
  }

  .status-badge, .role-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}
.dashboard {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  background: var(--color-bg-tertiary);
  padding: 0 32px;
  overflow: visible;
}


.dashboard-header {
  padding: 32px 0;
  border-bottom: 2px dashed #c6c6c9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: none;
  border-right: none;
  border-top: none;
  margin-bottom: 0;
  flex-shrink: 0;
}

.header-left h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 10px 0;
}

/* .header-subtitle moved to global */

/* .header-right moved to global */

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* .user-avatar moved to global */

/* .user-info moved to global */

/* .user-name moved to global */

.user-handle {
  font-size: 12px;
  color: var(--color-gray-500);
}

.empty-schedule {
  color: var(--color-gray-500);
  text-align: center;
  padding: 16px;
}

/* Template-style class cards */
/* .class-card moved to global */

/* .class-avatar moved to global */

.class-content {
  flex: 1 1;
  min-width: 0;
}

/* .class-teacher moved to global */

.class-subject-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Class subject now uses global .tag .tag-class styles */

.class-time {
  font-size: 13px;
  color: var(--color-gray-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Shimmer Button Styles */
.class-join-btn {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 26px;
  color: white;
  background: radial-gradient(ellipse 80% 50% at 50% 120%, var(--color-primary-500), var(--color-primary-600));
  border-radius: 8px;
  transition: all 0.3s;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  min-width: 100px;
  --spread: 90deg;
  --shimmer-color: #ffffff;
  --radius: 8px;
  --speed: 1.5s;
  --cut: 2px;
  --bg: radial-gradient(ellipse 80% 50% at 50% 120%, var(--color-primary-500), var(--color-primary-600));
}

.class-join-btn .shimmer-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.class-join-btn .shimmer-border {
  position: absolute;
  top: -100%;
  right: -100%;
  bottom: -100%;
  left: -100%;
  animation: spin 4s linear infinite;
}

.class-join-btn .shimmer-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: conic-gradient(from 225deg, transparent 0, rgba(255, 255, 255, 1) 90deg, transparent 90deg);
}

.class-join-btn .btn-background {
  position: absolute;
  background: var(--bg);
  border-radius: var(--radius);
  top: var(--cut);
  right: var(--cut);
  bottom: var(--cut);
  left: var(--cut);
}

.class-join-btn .btn-text {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, black 30%, rgba(156, 163, 175, 0.8));
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: white;
  -webkit-text-fill-color: white;
}

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

.class-join-btn:hover {
  transform: scale(1.05);
}

.class-join-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px var(--color-primary-300);
}

.class-join-btn:focus {
  outline: none;
  box-shadow: 0 4px 16px var(--color-primary-300), 0 0 0 3px var(--color-primary-200);
}

.class-join-btn:disabled {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.class-join-btn:disabled::before {
  display: none;
}

.class-join-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--color-gray-200);
}


/* Schedule status badges */
.schedule-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.schedule-status-badge.active {
  background: linear-gradient(135deg, var(--color-success-50) 0%, var(--color-success-100) 100%);
  color: var(--color-success-700);
  border-color: var(--color-success-200);
  box-shadow: 0 2px 8px var(--color-success-100);
}

.schedule-status-badge.completed {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border-color: var(--color-gray-200);
}

/* Status indicator dot for active classes */
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success-500);
  animation: pulse-indicator 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-indicator {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.3);
  }
}

/* Enhanced disabled button styling */
.class-join-btn.disabled {
  background: var(--color-gray-100) !important;
  color: var(--color-gray-500) !important;
  border-color: var(--color-gray-200) !important;
  cursor: not-allowed !important;
}

.class-join-btn.disabled:hover {
  background: var(--color-gray-100) !important;
  color: var(--color-gray-500) !important;
  transform: none !important;
  box-shadow: none !important;
}

.class-join-btn.disabled::before {
  display: none !important;
}


/* Today and Upcoming sections with class cards */
.today-section, .upcoming-section {
  margin-top: 32px;
  flex-shrink: 0;
}

/* Enhanced Base Class Card Styles for Dashboard */
.class-card-full {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* Enable container queries for responsive card behavior */
  container-type: inline-size;
}

.class-card-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400), var(--color-primary-600));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.class-card-full:hover::before {
  opacity: 1;
}

.class-card-full:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary-200);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.class-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.class-card-full:hover .class-avatar {
  transform: scale(1.08) rotate(2deg);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

.class-content {
  flex: 1 1;
  min-width: 0;
}

.class-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-gray-800);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.schedule-title-row {
  margin-bottom: 10px;
}

.schedule-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/*
.tag.tag-class {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--color-primary-700);
  border: 1px solid var(--color-primary-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
*/
.schedule-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Upcoming tag styles - using global tag styling with orange colors */
.tag-upcoming {
  /* Use global tag base styles */
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
  margin-right: 8px;

  /* Blue color theme for upcoming - same as .tag-class */
  background-color: #E6F3FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

/* Responsive card styling classes - Applied via JavaScript when card width ≤450px */
.class-card-full.responsive-narrow {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  padding: 16px !important;
}

.class-card-full.responsive-narrow .class-content {
  width: 100%;
  order: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
}

.class-card-full.responsive-narrow .class-avatar {
  align-self: center;
  order: 0;
  margin: 0 0 12px 0 !important;
}

.class-card-full.responsive-narrow .class-join-btn {
  width: 100% !important;
  order: 2;
  margin-top: 12px;
  align-self: stretch;
  min-width: 0 !important;
  min-width: initial !important;
  justify-content: center;
}

.class-card-full.responsive-narrow .tag-upcoming {
  width: 100% !important;
  order: 2;
  margin-top: 12px;
  align-self: stretch;
  display: block !important;
  text-align: center !important;
  margin-right: 0 !important;
  justify-content: center;
  box-sizing: border-box;
}

.class-card-full.responsive-narrow .schedule-title-row {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 10px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.class-card-full.responsive-narrow .class-title {
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.class-card-full.responsive-narrow .schedule-meta-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
}

.class-card-full.responsive-narrow .schedule-tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.class-card-full.responsive-narrow .schedule-time {
  text-align: center;
}

/* JavaScript-based responsive behavior */
.class-card-responsive-observer {
  /* This class enables JavaScript-based responsive behavior */
}

/* Add proper spacing for content inside dashboard */

.section-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gray-100);
}

/* User Management Beautiful Styles */
.tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0;
}

.user-tabs {
  display: inline-flex;
  background: white;
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.user-tab {
  position: relative;
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: scale(1);
}

.user-tab:hover {
  transform: scale(1.05);
}

.user-tab.active {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--color-primary-200);
}

.user-tab.admin.active {
  background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-600) 100%);
  box-shadow: 0 4px 12px var(--color-error-200);
}

/* Global CSS cho tất cả các tab active */
.user-tab.active {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  box-shadow: 0 4px 12px var(--color-primary-200);
}

.user-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  margin-left: 8px;
}

.user-tab.active .user-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.user-tab:not(.active) .user-tab-count {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
}

/* Button CSS đã được chuyển sang button-global.css để dùng chung cho tất cả trang */

/* .modal-overlay đã được chuyển sang sử dụng global classes từ button-global.css */

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

/* .modal-container đã được chuyển sang sử dụng global classes từ button-global.css */

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

/* .modal-header đã được chuyển sang sử dụng global classes từ button-global.css */

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.modal-icon-svg {
  width: 24px;
  height: 24px;
  color: white;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: #ffffff;
  margin: 4px 0 0 0;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
  transform: scale(1.05);
}

.modal-close-icon {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 24px;
  max-height: calc(90vh - 160px);
  overflow-y: auto;
}

.form-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* .form-label đã được chuyển sang sử dụng global classes từ button-global.css */

/* .form-select đã được chuyển sang sử dụng global classes từ button-global.css */

/* User Details Modal */
/* .user-details moved to global */

.user-details-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.user-details-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 25%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.user-details-name {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.user-details-username {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.user-details-status {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.user-details-status.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.user-details-status.inactive {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.user-details-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-section {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.info-title {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.info-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.info-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

.info-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.info-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.info-badge.admin {
  background: linear-gradient(135deg, #fef2f2 0%, #fce7e7 100%);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.info-badge.staff {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.info-badge.teacher {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.info-badge.student {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

/* Beautiful User Table Header - Specific to Dashboard */
.user-table-header {
  background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
  padding: 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-table-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-table-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-table-title {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.user-table-subtitle {
  font-size: 14px;
  color: var(--color-gray-500);
  margin: 4px 0 0 0;
}

.user-table-status {
  background: var(--color-bg-primary);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-table-status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}


/* .user-avatar moved to global */

/* Remove avatar dot - commented out */
/*
.user-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}
*/

.user-info h4 {
  font-size: 14px;
  font-weight: bold;
  color: #1f2937;
  margin: 0 0 4px 0;
  transition: color 0.2s ease;
}

.user-table tbody tr:hover .user-info h4 {
  color: #3b82f6;
}

.user-info p {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.user-info small {
  font-size: 12px;
  color: #9ca3af;
}

/* Role badges đã được chuyển sang sử dụng global classes từ button-global.css */

.contact-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.contact-info p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.date-info {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 4px 0;
}

.date-relative {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

/* Status badges đã được chuyển sang sử dụng global classes từ button-global.css */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.active {
  background: #10b981;
}

.status-dot.inactive {
  background: #ef4444;
}

/* Dashboard-specific styles cho user count và realtime indicator */
.user-count {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.user-count strong {
  color: #3b82f6;
}

.realtime-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.realtime-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}


@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.section-header svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: #6b7280;
}

/* Empty State Styles */
.dashboard .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px;
  text-align: center;
  margin: 16px 0;
  border: 2px dashed #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.dashboard .empty-state-icon {
  padding: 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard .empty-state-icon svg {
  color: #c6c6c9;
  width: 64px;
  height: 64px;
}

.dashboard .empty-state-content {
  max-width: 420px;
}

.dashboard .empty-state-title {
  margin-top: 0.25rem;
  color: rgb(154 154 154);
}

/* Comprehensive Responsive Design */

/* Large screens (desktop) */
@media (min-width: 1201px) {
  .dashboard {
    padding: 0 40px;
  }

  .dashboard-header {
    padding: 40px 0;
  }
}

/* Medium-large screens (tablets landscape, small desktops) */
@media (max-width: 1200px) {
  .dashboard {
    padding: 0 28px;
    margin-top: 12px;
  }

  .dashboard-header {
    padding: 28px 0;
    gap: 16px;
  }

  .section-header {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .header-left h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .header-left p {
    font-size: 15px;
  }

  /* Optimize class cards for large tablets */
  .class-card-full {
    padding: 20px;
    gap: 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  }

  .class-card-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  .class-avatar {
    width: 54px;
    height: 54px;
    font-size: 19px;
    border-radius: 15px;
  }

  .class-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .schedule-time {
    font-size: 14px;
    font-weight: 500;
  }

  .tag {
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 9px;
    font-weight: 600;
  }

  .class-join-btn {
    padding: 15px 24px;
    font-size: 14px;
    min-width: 95px;
    border-radius: 13px;
  }

  .tag-upcoming {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 16px;
  }

  /* Optimize spacing for large tablets */
  .schedule-meta-row {
    gap: 14px;
  }

  .schedule-tags {
    gap: 8px;
  }

  .today-section, .upcoming-section {
    margin-top: 26px;
  }

  /* Empty state for large tablets */
  .empty-state {
    padding: 48px 32px;
  }

  .empty-state h3 {
    font-size: 20px;
  }

  .empty-state p {
    font-size: 15px;
  }
}

/* Medium screens (tablets) */
@media (max-width: 968px) {
  .dashboard {
    padding: 0 16px;
    padding-top: 6px; /* Account for mobile header */
  }

  .dashboard-header {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-left h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .header-left p {
    font-size: 14px;
  }

  .today-section, .upcoming-section {
    margin-top: 24px;
  }

  .section-header {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  /* Enhanced class cards for tablets */
  .class-card-full {
    padding: 18px;
    gap: 14px;
    margin-bottom: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .class-card-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary-200);
  }

  .class-avatar {
    width: 52px;
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .class-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .schedule-time {
    font-size: 13px;
    font-weight: 500;
  }



  .class-join-btn {
    padding: 14px 22px;
    font-size: 13px;
    min-width: 90px;
    border-radius: 12px;
  }

  .tag-upcoming {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 16px;
  }
}

/* Small screens (phones landscape) */
@media (max-width: 768px) {
  .dashboard {
    padding: 0 12px;
  }

  .dashboard-header {
    padding: 20px 0;
    margin-bottom: 0;
  }

  .header-left h1 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .header-left p {
    font-size: 13px;
  }

  .today-section, .upcoming-section {
    margin-top: 20px;
  }

  .section-header {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }

  /* Beautiful mobile class cards - KEEP HORIZONTAL LAYOUT */
  .class-card-full {
    padding: 16px;
    gap: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Keep horizontal layout */
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .class-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400));
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .class-card-full:hover::before {
    opacity: 1;
  }

  .class-card-full:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.15),
      0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-200);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
  }

  .class-avatar {
    width: 46px;
    height: 46px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.12),
      0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .class-card-full:hover .class-avatar {
    transform: scale(1.05);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.16),
      0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .class-content {
    flex: 1 1;
    min-width: 0;
  }

  .class-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-gray-800);
    line-height: 1.3;
  }

  .schedule-title-row {
    margin-bottom: 8px;
  }

  /* KEEP HORIZONTAL LAYOUT for meta row */
  .schedule-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .schedule-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }


  .schedule-time {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-600);
  }

  .class-join-btn {
    padding: 12px 18px;
    font-size: 12px;
    min-width: 75px;
    flex-shrink: 0;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .class-join-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .tag-upcoming {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 16px;
  }

  /* Empty state responsive */
  .empty-state {
    padding: 32px 16px;
    border-radius: 16px;
  }

  .empty-state-title {
    font-size: 16px;
  }

  .empty-state-icon svg {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Extra small screens (phones portrait) */
@media (max-width: 480px) {
  .dashboard {
    padding: 0 8px;
  }

  .dashboard-header {
    padding: 16px 0;
  }

  .header-left h1 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .header-left p {
    font-size: 12px;
  }

  .today-section, .upcoming-section {
    margin-top: 16px;
  }

  .section-header {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 4px;
  }

  /* Compact but beautiful class cards */
  .class-card-full {
    padding: 14px;
    gap: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .class-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400));
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .class-card-full:hover::before {
    opacity: 1;
  }

  .class-card-full:hover {
    transform: translateY(-2px);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.12),
      0 3px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-200);
  }

  .class-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
    border-radius: 10px;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.1),
      0 1px 2px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
  }

  .class-card-full:hover .class-avatar {
    transform: scale(1.03);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.14),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }

  .class-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--color-gray-800);
  }

  .schedule-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gray-600);
  }


  .class-join-btn {
    font-size: 11px;
    min-width: 65px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .class-join-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  }

  .tag-upcoming {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 14px;
  }

  .class-join-btn .btn-text {
    font-size: 11px;
  }

  /* DISABLED: Card responsiveness now handled by container queries (less than 450px card width) instead of screen width
  .class-card-full {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 16px !important;
  }

  .class-card-full .class-content {
    width: 100%;
    order: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .class-card-full .class-avatar {
    align-self: center;
    order: 0;
    margin-bottom: 12px;
  }

  .class-card-full .class-join-btn {
    width: 100% !important;
    order: 2;
    margin-top: 12px;
    align-self: stretch;
    min-width: unset !important;
    justify-content: center;
  }

  /* REMOVED: .class-card-full .tag-upcoming - Container queries now handle card responsiveness */

  .schedule-title-row {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 10px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .class-title {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .schedule-meta-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100%;
  }

  .schedule-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .schedule-time {
    text-align: center;
  }
  */

  /* Compact empty state */
  .empty-state {
    padding: 24px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }

  .empty-state-title {
    font-size: 14px;
    margin-top: 8px;
  }

  .empty-state-icon {
    padding: 8px;
  }

  .empty-state-icon svg {
    width: 40px !important;
    height: 40px !important;
  }
}

/* Micro screens (very small phones) */
@media (max-width: 360px) {
  .dashboard {
    padding: 0 6px;
  }

  .header-left h1 {
    font-size: 15px;
  }

  .class-card-full {
    padding: 10px;
    gap: 6px;
  }

  .class-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .schedule-title-row {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 8px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .class-title {
    font-size: 12px;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .tag-upcoming {
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 12px;
  }

  /* REMOVED: .class-card-full .tag-upcoming - Container queries now handle card responsiveness */

}

/* Warning styles for restart functionality */
.class-join-btn.warning {
  background: linear-gradient(135deg, var(--color-warning-500) 0%, var(--color-warning-600) 100%);
  box-shadow: 0 4px 16px var(--color-warning-200);
  color: white;
}

.class-join-btn.warning:hover {
  background: linear-gradient(135deg, var(--color-warning-600) 0%, var(--color-warning-700) 100%);
  box-shadow: 0 8px 25px var(--color-warning-300);
}

.schedule-status-badge.warning {
  background: linear-gradient(135deg, var(--color-warning-50) 0%, var(--color-warning-100) 100%);
  color: var(--color-warning-700);
  border-color: var(--color-warning-200);
  box-shadow: 0 2px 8px var(--color-warning-100);
}

/* Loading spinner for meeting button */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

/* Button loading state */
.class-join-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.class-join-btn.loading .btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Fix cho các SVG icons bị to khổng lồ */
svg.h-4 {
  width: 1rem !important;
  height: 1rem !important;
}

svg.w-4 {
  width: 1rem !important;
}

svg.h-5 {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

svg.w-5 {
  width: 1.25rem !important;
}

svg.h-6 {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

svg.w-6 {
  width: 1.5rem !important;
}

/* Đảm bảo tất cả SVG trong dashboard có kích thước hợp lý */
.dashboard svg {
  max-width: 2rem !important;
  max-height: 2rem !important;
}

/* Fix cho các stats cards icons */
.bg-blue-100 svg,
.bg-green-100 svg,
.bg-yellow-100 svg,
.bg-purple-100 svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

/* Fix cho section header icons */
.flex.items-center svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}
/* SearchableSelect Styles */
.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  background: var(--color-bg-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: auto;
  box-sizing: border-box;
  outline: none;
}

.searchable-select-trigger:hover:not(.disabled) {
  border-color: var(--color-gray-400);
}

.searchable-select.open .searchable-select-trigger {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.searchable-select.disabled .searchable-select-trigger {
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.searchable-select-value {
  flex: 1 1;
  display: flex;
  align-items: center;
  min-height: 20px;
}

.selected-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.selected-label {
  font-weight: normal;
  color: var(--color-gray-700);
  font-size: 14px;
}

.selected-subtitle {
  color: var(--color-gray-500);
  font-size: 13px;
  font-weight: 400;
}

.placeholder {
  color: var(--color-gray-500);
  font-size: 14px;
  font-weight: 400;
}

.searchable-select-arrow {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.searchable-select.open .searchable-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.searchable-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: dropdownSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Search Input */
.searchable-select-search {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}

.searchable-select-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.searchable-select-search-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-500), 0.1);
}

/* Options */
.searchable-select-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.searchable-select-options::-webkit-scrollbar {
  width: 6px;
}

.searchable-select-options::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.searchable-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.searchable-select-options::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.searchable-select-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.searchable-select-option:hover,
.searchable-select-option.highlighted {
  background: #f8fafc;
  border-left-color: var(--color-primary-500);
}

.searchable-select-option.selected {
  background: rgba(var(--color-primary-500), 0.08);
  border-left-color: var(--color-primary-500);
  font-weight: 500;
}

.searchable-select-option.selected .option-label {
  color: var(--color-primary-700);
}

.option-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.option-subtitle {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.searchable-select-no-options {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .searchable-select-dropdown {
    margin-top: 2px;
  }
  
  .searchable-select-options {
    max-height: 180px;
  }
  
  .searchable-select-option {
    padding: 10px 12px;
  }
  
  .option-label,
  .selected-label {
    font-size: 13px;
  }
  
  .option-subtitle,
  .selected-subtitle {
    font-size: 12px;
  }
}
/* Modal Common Styles - Standardized CSS for all modals */

/* Modal Header Button - Standardized style for all header buttons */
.modal-header-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-header-btn svg {
  width: 24px;
  height: 24px;
}

/* Modal Header Icon Container */
.modal-header-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Modal Header Actions Container */
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Modal Container - Using global styles */
.modal-container {
  background: var(--color-bg-primary);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 600px;
  max-height: 95vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

/* Modal Header - Using global styles */
.modal-header {
  background: var(--color-primary-600);
  color: white;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-gray-200);
}

/* Header Info Container */
.header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Modal Form */
.modal-form {
  padding: 32px;
}

/* Form Row - 2 columns layout */
.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Global modal header h2 style for all modals */
.modal-header h2,
.header-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: inherit;
}

/* Global modal subtitle style for all modals */
.modal-header p,
.header-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* Global Cancel Button for Confirm Dialogs */
.btn-cancel-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  min-width: 120px;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
}

.btn-cancel-confirm:hover {
  background: #e5e7eb;
  color: #374151;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn-cancel-confirm svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design for Modal Common Styles */
@media (max-width: 768px) {
  .modal-container {
    width: 98%;
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 20px 16px;
  }
  
  .modal-header h2,
  .header-info h2 {
    font-size: 18px;
  }
  
  .modal-header p,
  .header-info p {
    font-size: 12px;
  }
  
  .modal-header-actions {
    gap: 8px;
  }
  
  .modal-header-btn {
    padding: 6px;
  }
  
  .modal-header-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .btn-cancel-confirm {
    width: 100%;
    min-width: none;
  }
  
  .modal-header-icon {
    width: 48px;
    height: 48px;
  }
  
  .modal-header-icon svg {
    width: 28px;
    height: 28px;
  }
}
/* Add Schedule Modal - Using Global CSS Classes */

/* Modal overlay and container now use global classes */

/* Custom components for schedule modal only */

/* .form-row đã được chuyển sang sử dụng global classes từ button-global.css */

/* .form-label đã được chuyển sang sử dụng global classes từ button-global.css */

/* Form input, textarea, select styles moved to global */

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary-500) !important;
  box-shadow: 0 0 0 3px var(--color-primary-100) !important;
}

/* .form-textarea đã được chuyển sang sử dụng global classes từ button-global.css */

/* Placeholder styles moved to global */

.form-input[type="datetime-local"] {
  cursor: pointer;
}

/* Schedule Info Card */
.schedule-info-card {
  background: #fef7e6;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.schedule-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-info-title svg {
  width: 16px;
  height: 16px;
}

.schedule-info-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}

/* Duration Display */
.duration-display {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.duration-display svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* .modal-actions đã được chuyển sang sử dụng global classes từ button-global.css */

/* Button styles moved to global */

/* Validation */
/* Validation styles moved to global */

/* Responsive Design */
@media (max-width: 768px) {
  .add-schedule-modal {
    margin: 20px;
    width: calc(100% - 40px);
    max-width: none;
  }
  
  .add-schedule-header {
    padding: 20px 24px;
  }
  
  .add-schedule-form {
    padding: 24px;
  }
  
  /* Responsive styles for global classes */
  
  /* Button responsive styles moved to global */
}
/* Class Details Modal - Beautiful UI Design */

.details-modal-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* Smooth transitions for list updates */
.student-card, .schedule-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.student-card:hover, .schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation for new items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-card, .schedule-card {
  animation: fadeInUp 0.3s ease-out;
}

/* Header styles now use global .modal-header from modal-common.css */

.header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header icon uses global .modal-header-icon from modal-common.css */

/* .header-info h2 moved to global modal-common.css */

/* .class-teacher moved to global */

/* Specific styles for ClassDetailsModal - header-actions and delete-class-btn are now handled by modal-common.css */

/* Tabs */
.modal-tabs {
  display: flex;
  background: var(--color-gray-50);
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  flex: 1 1;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--color-gray-700);
  background: var(--color-gray-100);
}

.tab-btn.active {
  color: var(--color-primary-500);
  background: white;
  border-bottom-color: var(--color-primary-500);
}

/* Modal Content */
.modal-content {
  flex: 1 1;
  padding: 32px;
  overflow-y: auto;
  position: relative;
}

/* Overview Tab */
.overview-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-top-row {
  width: 100%;
}

.overview-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
}

.info-card {
  background: var(--color-gray-50);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.info-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 16px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.info-row .label {
  font-size: 14px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.info-row .value {
  font-size: 14px;
  color: var(--color-gray-900);
  font-weight: 600;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  flex: 1 1;
}

/* .stat-item moved to global */

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.stat-label {
  font-size: 14px;
  color: var(--color-gray-500);
  font-weight: 500;
}

/* Students Tab */
.students-tab {
}

.students-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.students-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

/* Add student button uses global .add-btn from button-global.css */

.students-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-gray-50);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.student-card:hover {
  background: var(--color-gray-100);
  border-color: var(--color-primary-500);
}

.student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.student-info {
  flex: 1 1;
}

.student-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.student-details {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 2px;
}

.student-enrolled {
  font-size: 12px;
  color: var(--color-gray-400);
}

.remove-student-btn {
  width: 36px;
  height: 36px;
  background: var(--color-error-50);
  border: 1px solid #fecaca;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-error-500);
}

.remove-student-btn:hover {
  background: var(--color-error-100);
  border-color: var(--color-error-300);
}

.remove-student-btn svg {
  width: 16px;
  height: 16px;
}

/* Add Student Modal */
.add-student-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: 1100;
}

.add-student-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow: hidden;
}

.add-student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
}

.add-student-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.add-student-content {
  padding: 24px;
  max-height: calc(70vh - 80px);
  overflow-y: auto;
}

.available-students {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.available-student-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-gray-50);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.available-student-card:hover {
  background: var(--color-gray-100);
  border-color: var(--color-primary-500);
}

/* Button .add-btn đã được chuyển sang sử dụng global class từ button-global.css */

/* Schedules Tab */
.schedules-tab {
}

.schedules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.schedules-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

/* Add schedule button uses global .add-btn from button-global.css */

.schedules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* .schedule-card moved to global */

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.schedule-info {
  flex: 1 1;
}

.schedule-topic {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

/* Mobile status - hidden on desktop, shown on mobile */
.mobile-status {
  display: none;
  margin-bottom: 8px;
}

/* Desktop status - shown on desktop */
.desktop-status {
  display: block;
}

/* .schedule-time moved to global */

.bullet {
  display: inline-block;
  margin-right: 8px;
  color: var(--color-primary-500);
  font-weight: bold;
  font-size: 30px;
  line-height: 1;
  vertical-align: middle;
}

/* .schedule-description moved to global */

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-align: center;
  min-width: 100px;
}

.remove-schedule-btn {
  width: 36px;
  height: 36px;
  background: var(--color-error-50);
  border: 1px solid #fecaca;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-error-500);
}

.remove-schedule-btn:hover {
  background: var(--color-error-100);
  border-color: var(--color-error-300);
}

.remove-schedule-btn svg {
  width: 16px;
  height: 16px;
}

.zoom-info {
  background: var(--color-warning-50);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* .zoom-details moved to global */

.zoom-url {
  color: var(--color-primary-500);
  text-decoration: none;
  font-size: 12px;
  word-break: break-all;
  display: inline-block;
  margin-top: 2px;
}

.zoom-url:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

/* Zoom URL responsive container */
.zoom-url-container {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zoom-url-label {
  margin-bottom: 0;
  flex-shrink: 0;
}

.zoom-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1;
  min-width: 250px;
}

.zoom-url-row .zoom-url {
  flex: 1 1;
  min-width: 150px;
  word-break: break-all;
}

.zoom-url-row .copy-btn {
  flex-shrink: 0;
}

.zoom-actions {
  display: flex;
  gap: 8px;
}

.start-meeting-btn,
.join-meeting-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
}

.start-meeting-btn:hover,
.join-meeting-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-primary-300);
}

.start-meeting-btn svg,
.join-meeting-btn svg {
  width: 14px;
  height: 14px;
}

.end-meeting-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.end-meeting-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.end-meeting-btn svg {
  width: 14px;
  height: 14px;
}

/* Copy URL buttons */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-500);
  padding: 2px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  transform: scale(1.1);
}

/* Empty States */
/* .empty-state moved to global */

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--color-gray-400);
  margin: 0 auto 16px;
}

.empty-state p {
  color: var(--color-gray-500);
  font-size: 16px;
  margin: 0;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--color-gray-500);
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .details-modal-container {
    width: 98%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 20px 16px;
  }

  .header-info {
    gap: 12px;
  }

  .header-info h2 {
    font-size: 20px;
  }

  .modal-content {
    padding: 20px;
  }

  .overview-bottom-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .students-header {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .students-header h4 {
    font-size: 18px;
    flex: 1 1;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .student-card {
    padding: 12px;
    gap: 12px;
  }

  .student-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Responsive zoom URLs for mobile */
  .zoom-url-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .zoom-url-label {
    margin-bottom: 4px;
  }

  .zoom-url-row {
    min-width: 0;
    min-width: initial;
    width: 100%;
  }

  .zoom-url-row .zoom-url {
    min-width: 0;
    min-width: initial;
    word-break: break-all;
  }
}

/* Responsive for schedule card when modal width < 550px */
@media (max-width: 550px) {
  .schedule-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .schedule-info {
    flex: 1 1;
  }

  /* Show mobile status */
  .mobile-status {
    display: inline-block;
  }

  /* Hide desktop status on mobile */
  .desktop-status {
    display: none;
  }

  /* Keep delete button on right */
  .schedule-actions {
    flex-shrink: 0;
    align-self: flex-start;
  }
}
/* Classes Page - Beautiful UI Design */

/* Header styles now use global .dashboard-header class */

/* .header-subtitle moved to global */

/* .header-right moved to global */

/* Filter Actions Section */
.filter-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-gray-100);
  flex-wrap: wrap;
  gap: 16px;
  min-height: 60px;
}

/* Date filter contains date inputs and clear button */
.filter-actions-section > .date-filter {
  flex: 1 1 auto;
  min-width: 300px;
}

/* Add class button positioned at the end */
.filter-actions-section > .add-user-btn {
  flex: 0 0 auto;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .filter-actions-section {
    justify-content: center;
  }

  .filter-actions-section > .date-filter {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .filter-actions-section > .add-user-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* Clear button responsive styling in date filter */
  .clear-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: -webkit-fit-content;
    min-width: fit-content;
    white-space: nowrap;
  }

  /* Date inputs responsive on small screens */
  .date-input {
    flex: 1 1;
    min-width: 100px;
    max-width: none;
  }
}

/* Extra small screens - stack date inputs */
@media (max-width: 400px) {
  .date-filter {
    flex-direction: column;
    gap: 12px;
  }

  .date-input {
    width: 100%;
    min-width: 0;
    min-width: initial;
    max-width: none;
    max-width: initial;
  }

  .date-separator {
    order: -1;
    font-size: 12px;
  }

  /* Clear button responsive styling for extra small screens */
  .clear-filter-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: -webkit-fit-content;
    min-width: fit-content;
    white-space: nowrap;
    width: 100%;
  }

  /* Add-user-btn content width for extra small screens */
  .add-user-btn {
    min-width: -webkit-fit-content;
    min-width: fit-content;
    width: 100%;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Date Filter */
.date-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
  min-width: 0;
  flex-wrap: wrap;
}

/* Date inputs responsive behavior */
.date-input {
  flex: 1 1;
  min-width: 120px;
  max-width: 200px;
}

.date-separator {
  flex-shrink: 0;
}

.date-filter:hover {
}

.date-input {
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.date-input:focus {
  outline: none;
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 4px var(--color-primary-100);
  transform: translateY(-1px);
}

.date-input:hover {
  border-color: var(--color-primary-300);
  transform: translateY(-1px);
}

.date-separator {
  font-size: 14px;
  color: var(--color-gray-600);
  font-weight: 600;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-filter-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-filter-btn:hover {
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clear-filter-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Button đã chuyển sang sử dụng global class .add-btn từ button-global.css */

/* Override button "Tạo Lớp Mới" để sử dụng màu orange theme */
.add-btn {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%) !important;
}

.add-btn:hover {
  /* Use consistent global hover effect with shine sweep only */
}

/* Loading State */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

/* .loading-spinner moved to global */

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

/* Empty State */
/* .empty-state moved to global */

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-gray-400);
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 8px 0;
}

.empty-state p {
  color: var(--color-gray-500);
  font-size: 16px;
  margin: 0;
}

/* Classes Grid */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-top: 20px;
}

/* Classes List for Staff and Teacher */
.classes-list {
  display: flex;
  flex-direction: column;
}

/* Class Card */
/* .class-card moved to global */

.clickable-card {
  cursor: pointer;
}

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

.class-card-content {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Class Header */
.class-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

/* .class-avatar moved to global */

.class-title-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.class-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.class-teacher-tag {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.class-period {
  font-size: 13px;
  color: var(--color-gray-400);
  font-weight: 400;
  margin-top: 8px;
}

/* Lesson Progress */
.lesson-progress {
  margin-top: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-600);
}

.progress-numbers {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-success-600);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--color-gray-200);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-success-600);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Class Description */
.class-description {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Class Stats */
.class-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-gray-500);
}

/* .stat-item moved to global */

.stat-item svg {
  width: 16px;
  height: 16px;
}

/* Class Dates */
.class-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-gray-400);
  margin-top: 16px;
}

.start-date,
.end-date {
  font-weight: 400;
}

/* Full Width Class Card for Staff and Teacher */
.class-card-full {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 20px;
}

.class-card-full:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Override clickable-card hover for class-card-full specifically */
.class-card-full.clickable-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

.class-card-full .class-avatar {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  margin-right: 16px;
  flex-shrink: 0;
}

.class-card-full .class-content {
  flex: 1 1;
  min-width: 0;
  margin-right: 16px;
}

.class-card-full .class-teacher {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.class-card-full .class-subject-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.class-card-full .class-subject {
  font-size: 14px;
  color: var(--color-gray-700);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.class-card-full .class-time {
  font-size: 14px;
  color: var(--color-gray-400);
  font-weight: 400;
}

.class-description-full {
  font-size: 13px;
  color: var(--color-gray-500);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-stats {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.class-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray-600);
}

.class-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.class-stats .stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-800);
  line-height: 1;
}

.class-stats .stat-label {
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 2px;
}

/* Status badges đã được chuyển sang sử dụng global classes từ button-global.css */

/* Filter tabs for schedules */
.filter-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-bg-primary);
  color: var(--color-gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.filter-tab.active {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: white;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.filter-tab:not(.active) .filter-count {
  background: var(--color-gray-200);
  color: var(--color-gray-600);
}

/* Schedule card layout */
.schedule-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.schedule-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* .schedule-time moved to global */

.class-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.4;
}

/* Class Footer */
.class-footer {
  padding: 16px 24px;
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
}

.view-details-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.view-details-btn:hover {
  color: var(--color-primary-600);
}

/* Responsive class-card-full styling classes for Classes page - Applied via JavaScript when card width ≤550px */
.class-card-full.responsive-narrow-classes {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  padding: 16px !important;
}

.class-card-full.responsive-narrow-classes .class-content {
  width: 100%;
  order: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
}

.class-card-full.responsive-narrow-classes .class-avatar {
  align-self: center;
  order: 0;
  margin: 0 0 12px 0 !important;
}

.class-card-full.responsive-narrow-classes .class-stats {
  width: 100% !important;
  order: 999;
  margin-top: 12px;
  align-self: stretch;
  display: flex !important;
  justify-content: center !important;
  gap: 24px !important;
  margin-right: 0 !important;
}

.class-card-full.responsive-narrow-classes .class-subject-row {
  justify-content: center;
  margin: 8px 0;
}

.class-card-full.responsive-narrow-classes .class-teacher {
  text-align: center;
  margin-bottom: 8px;
}

/* Responsive class-card-full styling for Schedules page - Applied via JavaScript when card width < 750px */
.class-card-full.responsive-hide-stats .class-stats {
  display: none !important;
}

/* Responsive class-card-full styling for Schedules page - Applied via JavaScript when card width < 550px */
.class-card-full.responsive-hide-tags .schedule-tags {
  display: none !important;
}

/* Responsive class-card-full styling for Schedules page - Applied via JavaScript when card width < 520px */
/* Center align all elements including avatar */
.class-card-full.responsive-narrow-schedules {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  padding: 16px !important;
}

.class-card-full.responsive-narrow-schedules .class-content {
  width: 100%;
  order: 1;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.class-card-full.responsive-narrow-schedules .class-avatar {
  order: 0;
  margin: 0 0 12px 0 !important;
  align-self: center;
}

.class-card-full.responsive-narrow-schedules .schedule-title-row {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.class-card-full.responsive-narrow-schedules .schedule-meta-row {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.class-card-full.responsive-narrow-schedules .schedule-tags {
  justify-content: center;
}

.class-card-full.responsive-narrow-schedules .class-title {
  text-align: center;
}

/* Filter Dropdown for Schedules page - Show when page-content < 650px */
.filter-dropdown {
  display: none;
  position: relative;
  width: 100%;
}

.filter-dropdown-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: white;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-dropdown-button:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
}

.dropdown-label {
  flex: 1 1;
  text-align: left;
}

.dropdown-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
}

.dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-gray-500);
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
  animation: dropdownSlideIn 0.2s ease-out;
}

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

.filter-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: white;
  border: none;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

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

.filter-dropdown-item:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.filter-dropdown-item.active {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-weight: 600;
}

.filter-dropdown-item .item-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: var(--color-gray-200);
  color: var(--color-gray-700);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

.filter-dropdown-item.active .item-count {
  background: var(--color-primary-500);
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .classes-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
  }
}

/* Container-based responsive styles for filter-actions-section */
.filter-actions-section.filter-narrow {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
}

.filter-actions-section.filter-narrow .date-filter {
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.filter-actions-section.filter-narrow .date-input {
  min-width: 120px;
  flex: 1 1;
}

.filter-actions-section.filter-narrow .clear-filter-btn {
  min-width: -webkit-fit-content;
  min-width: fit-content;
  white-space: nowrap;
  padding: 8px 16px;
  flex-shrink: 0;
}

.filter-actions-section.filter-narrow .add-user-btn {
  align-self: center;
  width: -webkit-fit-content;
  width: fit-content;
  min-width: -webkit-fit-content;
  min-width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-actions-section.filter-very-narrow {
  margin: 20px 0;
  padding: 16px;
  gap: 24px;
}

.filter-actions-section.filter-very-narrow .date-filter {
  gap: 12px;
}

.filter-actions-section.filter-very-narrow .date-input {
  min-width: 100px;
  font-size: 14px;
  padding: 8px 12px;
}

.filter-actions-section.filter-very-narrow .clear-filter-btn {
  padding: 8px 12px;
  font-size: 12px;
  min-width: -webkit-fit-content;
  min-width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-actions-section.filter-very-narrow .add-user-btn {
  padding: 10px 16px;
  font-size: 14px;
  min-width: -webkit-fit-content;
  min-width: fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-info h1 {
    font-size: 28px;
  }
}


/* AccessDenied Component Styles */
.access-denied-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  text-align: center;
}

/* Khi có header dashboard, trừ đi height của header */
.access-denied-container.with-header {
  height: calc(100vh - 200px);
}

.access-denied-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.access-denied-content {
  max-width: 480px;
}

.access-denied-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.access-denied-message {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .access-denied-container {
    padding: 16px;
    gap: 12px;
  }

  .access-denied-icon {
    width: 48px;
    height: 48px;
  }

  .access-denied-title {
    font-size: 20px;
  }

  .access-denied-message {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .access-denied-title {
    font-size: 18px;
  }

  .access-denied-message {
    font-size: 13px;
  }
}
/* Users Table Specific Styles - chỉ giữ lại các styles đặc biệt cho Users page */

/* Avatar column centered */
.user-table th:nth-child(2),
.user-table td:nth-child(2) {
  text-align: center;
}


/* Actions column centered (column 7 for Users page) */
.user-table th:nth-child(7),
.user-table td:nth-child(7) {
  text-align: center;
}

/* Delete User Button */
.delete-user-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--color-error-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.delete-user-btn:hover {
  background-color: var(--color-error-50);
  color: var(--color-error-700);
  transform: scale(1.1);
}

.delete-user-btn:active {
  transform: scale(1);
  background-color: var(--color-error-100);
}
/* Students Page Specific Styles */

/* Students Table Wrapper */
.students-table-wrapper {
  background: var(--color-bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
}

/* Students Table Container - Override global styles */
.students-page .global-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.students-page .global-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Students Table - Set min-width */
.students-page .global-table {
  min-width: 600px;
}

/* Students Table Footer - Separate from scroll container */
.students-table-footer {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-primary-50) 100%);
  padding: 16px;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
}

.students-table-footer-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.students-table-footer-left .user-count {
  white-space: nowrap;
  font-size: 14px;
}

.students-table-footer-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.students-table-footer-right .pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.students-table-footer-right .pagination-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Teachers Page Specific Styles */

/* Teachers Table Wrapper */
.teachers-table-wrapper {
  background: var(--color-bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
}

/* Teachers Table Container - Override global styles */
.teachers-page .global-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.teachers-page .global-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Teachers Table - Set min-width */
.teachers-page .global-table {
  min-width: 600px;
}

/* Teachers Table Footer - Separate from scroll container */
.teachers-table-footer {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-primary-50) 100%);
  padding: 16px;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
}

.teachers-table-footer-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.teachers-table-footer-left .user-count {
  white-space: nowrap;
  font-size: 14px;
}

.teachers-table-footer-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.teachers-table-footer-right .pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.teachers-table-footer-right .pagination-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Staffs Page - Table Scrolling Styles */

.staffs-table-wrapper {
  background: var(--color-bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
}

/* Scoped to staffs page only */
.staffs-page .global-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.staffs-page .global-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.staffs-page .global-table {
  min-width: 600px;
}

/* Footer - Outside scroll container */
.staffs-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-gray-100);
  width: 100%;
}

.staffs-table-footer-left {
  flex: 0 0 auto;
  white-space: nowrap;
}

.staffs-table-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* Zoom Accounts Page Styles */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* .empty-state moved to global */

.empty-icon {
  margin-bottom: 20px;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.empty-description {
  font-size: 16px;
  color: var(--color-gray-500);
}

/* Modal Zoom Users Table Styling */
.zoom-modal-table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.zoom-modal-table thead {
  border-bottom: solid 1px var(--color-gray-400);
}

.zoom-modal-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zoom-modal-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--color-gray-200);
}

.zoom-modal-table tbody tr:hover {
  background-color: var(--color-gray-200);
}

.zoom-modal-table tbody td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--color-gray-700);
}

.zoom-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.zoom-user-avatar:hover {
  transform: scale(1.1);
}

.zoom-user-info {
  margin-left: 16px;
}

.zoom-user-name {
  font-weight: 600;
  color: var(--color-gray-900);
  font-size: 16px;
  margin-bottom: 4px;
}

.zoom-user-type {
  color: var(--color-gray-500);
  font-size: 12px;
  text-transform: capitalize;
}

.zoom-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zoom-status-active {
  background: linear-gradient(135deg, var(--color-success-500), var(--color-success-600));
  color: white;
}

.zoom-status-inactive {
  background: linear-gradient(135deg, var(--color-gray-500), var(--color-gray-600));
  color: white;
}

.zoom-new-badge {
  background: linear-gradient(135deg, var(--color-warning-500), var(--color-warning-600));
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

.zoom-new-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--color-warning-500), var(--color-warning-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
  animation: bounce 1s infinite;
}

.zoom-modal-summary-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid;
}

.zoom-modal-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.zoom-modal-summary-card.blue {
  border-left-color: var(--color-primary-500);
}

.zoom-modal-summary-card.green {
  border-left-color: var(--color-success-500);
}

.zoom-modal-summary-card.orange {
  border-left-color: var(--color-warning-500);
}

.zoom-modal-summary-number {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
  background-clip: text;
}

.zoom-modal-summary-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

.zoom-modal-container {
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.zoom-modal-header {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  padding: 24px 32px;
  border-radius: 16px 16px 0 0;
}

.zoom-modal-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.zoom-table-container {
  background: var(--color-bg-primary);
  border-radius: 0px 0px 16px 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
}

/* Additional modal fixes */
.fixed {
  position: fixed !important;
}

.inset-0 {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

/* Ensure modal appears above everything */
.zoom-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background-color: rgba(17, 24, 39, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

/* Action Button Styles */
/* .action-btn moved to global */

/* .add-btn CSS đã được định nghĩa trong button-global.css */

/* .delete-btn CSS đã được định nghĩa trong button-global.css */

.action-status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Delete Icon Button */
.delete-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--color-error-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.delete-icon-btn:hover {
  background-color: var(--color-error-50);
  color: var(--color-error-700);
  transform: scale(1.1);
}

.delete-icon-btn:active {
  transform: scale(1);
  background-color: var(--color-error-100);
}

/* Add Icon Button */
.add-icon-btn {
  background: none;
  border: 1px solid var(--color-success-500);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--color-success-500);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.add-icon-btn:hover {
  background-color: var(--color-success-50);
  border-color: var(--color-success-600);
  color: var(--color-success-600);
  transform: scale(1.1);
}

.add-icon-btn:active {
  transform: scale(1);
  background-color: var(--color-success-100);
}

/* End Meeting Button */
.end-meeting-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: #ef4444;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.end-meeting-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  transform: scale(1.1);
}

.end-meeting-btn:active {
  transform: scale(1);
  background-color: rgba(239, 68, 68, 0.2);
}



/* ZoomAccounts-specific column widths - chỉ giữ lại các column widths đặc biệt */

/* ZoomAccounts-specific column widths */
.zoom-table th:nth-child(2),
.zoom-table td:nth-child(2) {
  width: auto;
  min-width: 200px;
}

.zoom-table th:nth-child(3),
.zoom-table td:nth-child(3) {
  width: -webkit-fit-content;
  width: fit-content;
  min-width: 120px;
}

.zoom-table th:nth-child(4),
.zoom-table td:nth-child(4) {
  width: -webkit-fit-content;
  width: fit-content;
  min-width: 130px;
}

.zoom-table th:nth-child(5),
.zoom-table td:nth-child(5) {
  width: -webkit-fit-content;
  width: fit-content;
  min-width: 100px;
}

/* Online Status Styles */
.status-badge.online {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse-green 2s infinite;
}

.status-badge.offline {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

.offline-dot {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  display: inline-block;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 2px 16px rgba(16, 185, 129, 0.6);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========================================
   RESPONSIVE STYLES FOR MOBILE
   ======================================== */

/* Mobile Responsive - Small devices (phones, 640px and down) */
@media (max-width: 640px) {

  /* Modal Overlay - Full screen on mobile */
  .zoom-modal-overlay {
    padding: 0 !important;
  }

  /* Modal Container - Full width, reduce padding */
  .zoom-modal-container {
    max-height: 100vh !important;
  }

  /* Modal Header - Reduce padding and font size */
  .zoom-modal-header {
    padding: 16px !important;
  }

  .zoom-modal-header h3 {
    font-size: 18px !important;
    padding-right: 40px; /* Space for close button */
  }

  /* Close button positioning for mobile */
  .zoom-modal-header button {
    right: 16px !important;
    font-size: 24px !important;
  }

  /* Table Container - Full width scroll */
  .zoom-table-container {
    margin: 0 !important;
  }

  .zoom-table-container .max-h-96 {
    max-height: calc(100vh - 150px) !important; /* Account for header */
  }

  /* Modal Table - Reduce padding */
  .zoom-modal-table thead th {
    padding: 12px 8px !important;
    font-size: 12px !important;
  }

  .zoom-modal-table tbody td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }

  /* Hide less important columns on very small screens */
  @media (max-width: 480px) {
    /* You can hide columns if needed */
    /* .zoom-modal-table th:nth-child(3),
    .zoom-modal-table td:nth-child(3) {
      display: none;
    } */
  }

  /* Status badges - Smaller on mobile */
  .zoom-status-badge {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* Action buttons - Smaller on mobile */
  .add-icon-btn,
  .delete-icon-btn {
    padding: 6px !important;
  }

  .add-icon-btn svg,
  .delete-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* User info - Stack on mobile */
  .zoom-modal-table .font-medium {
    font-size: 13px !important;
  }

  /* SYNC button - prevent full width on mobile */
  .add-user-btn {
    width: auto !important;
    max-width: -webkit-fit-content !important;
    max-width: fit-content !important;
    align-self: flex-start;
  }
}

/* Tablet Responsive - Medium devices (tablets, 641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {

  /* Modal Header */
  .zoom-modal-header {
    padding: 20px 24px !important;
  }

  .zoom-modal-header h3 {
    font-size: 20px !important;
  }

  /* Table padding - slightly reduce */
  .zoom-modal-table thead th {
    padding: 14px 16px !important;
  }

  .zoom-modal-table tbody td {
    padding: 14px 16px !important;
  }
}

/* Landscape mobile fix */
@media (max-height: 600px) and (orientation: landscape) {
  .zoom-modal-container {
    max-height: 95vh !important;
  }

  .zoom-table-container .max-h-96 {
    max-height: calc(95vh - 120px) !important;
  }
}


/* Zoom Accounts Page - Table Scrolling Styles */

.zoom-accounts-table-wrapper {
  background: var(--color-bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
}

/* Scoped to zoom-accounts page only */
.zoom-accounts-page .global-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.zoom-accounts-page .global-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.zoom-accounts-page .global-table {
  min-width: 600px;
}

/* Footer - Outside scroll container */
.zoom-accounts-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-gray-100);
  width: 100%;
}

.zoom-accounts-table-footer-left {
  flex: 0 0 auto;
  white-space: nowrap;
}

.zoom-accounts-table-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* Zoom SDK Loading Spinner Override - CHỈ TRONG TRANG MEETING */
/* Chỉ áp dụng cho trang Meeting, không ảnh hưởng Dashboard */

/* Scope CSS chỉ cho meeting container */
.meeting-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 1000;
}

/* Custom loading overlay cho trang Meeting */
.zoom-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
}

.zoom-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: zoom-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes zoom-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* CHỈ áp dụng Zoom SDK loading spinner trong meeting container */
.meeting-container #zmmtg-root .zm-loading,
.meeting-container #zmmtg-root .loading-indicator,
.meeting-container #zmmtg-root [class*="loading"],
.meeting-container #zmmtg-root [class*="spinner"],
.meeting-container .meeting-loading,
.meeting-container .zm-spinner {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10000 !important;
}
/* Notification Container */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 400px;
  width: 100%;
}

/* Individual Notification */
.notification {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid #e5e7eb;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInUp 0.3s ease-out;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Notification Types */
.notification-success {
  border: 2px solid #10b981;
  background: white;
}

.notification-error {
  border: 2px solid #ef4444;
  background: white;
}

.notification-warning {
  border: 2px solid #f59e0b;
  background: white;
}

.notification-info {
  border: 2px solid #3b82f6;
  background: white;
}

/* Notification Content */
.notification-content {
  flex: 1 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon {
  width: 24px;
  height: 24px;
}

.notification-success .notification-icon {
  color: #10b981;
}

.notification-error .notification-icon {
  color: #ef4444;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

.notification-text {
  flex: 1 1;
  min-width: 0;
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.notification-message {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* Close Button */
.notification-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.notification-close svg {
  width: 18px;
  height: 18px;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .notification-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .notification-title {
    font-size: 15px;
  }

  .notification-message {
    font-size: 13px;
  }
}

/* Extra small screens (320px) */
@media (max-width: 320px) {
  .notification-container {
    bottom: 8px;
    right: 8px;
    left: 8px;
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
  }

  .notification {
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .notification-header {
    gap: 8px;
  }

  .notification-icon {
    width: 20px;
    height: 20px;
  }

  .notification-title {
    font-size: 14px;
  }

  .notification-message {
    font-size: 12px;
  }

  .notification-close svg {
    width: 16px;
    height: 16px;
  }
}
/* Confirm Dialog */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10100;
  animation: fadeIn 0.2s ease-out;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.confirm-dialog {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

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

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

/* Dialog Header */
.confirm-dialog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* Confirm icon uses global .modal-header-icon with circular border-radius */

.confirm-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.confirm-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex: 1 1;
}

/* Dialog Content */
.confirm-content {
  padding: 32px;
  text-align: center;
}

.confirm-message {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Dialog Actions */
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 32px 32px 32px;
}

/* Cancel button uses global .btn-cancel-confirm from modal-common.css */

.btn-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 120px;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.btn-confirm svg {
  width: 16px;
  height: 16px;
}

/* Success Confirm Button (for non-destructive actions) */
.btn-confirm.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-confirm.success:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .confirm-dialog {
    margin: 20px;
    width: calc(100% - 40px);
    max-width: none;
  }

  .confirm-dialog-header {
    padding: 20px 24px;
    gap: 12px;
  }

  /* Responsive icon styles handled by global .modal-header-icon */

  .confirm-icon {
    width: 24px;
    height: 24px;
  }

  .confirm-title {
    font-size: 18px;
  }

  .confirm-content {
    padding: 24px;
  }

  .confirm-message {
    font-size: 15px;
  }

  .confirm-actions {
    flex-direction: column;
    padding: 0 24px 24px 24px;
  }

  .btn-confirm {
    width: 100%;
    min-width: none;
  }
}

/* Extra small screens (320px) */
@media (max-width: 320px) {
  .confirm-dialog {
    margin: 12px;
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 16px;
  }

  .confirm-dialog-header {
    padding: 16px 20px;
    gap: 10px;
  }

  .confirm-icon {
    width: 20px;
    height: 20px;
  }

  .confirm-title {
    font-size: 16px;
    font-weight: 600;
  }

  .confirm-content {
    padding: 20px;
  }

  .confirm-message {
    font-size: 14px;
    line-height: 1.5;
  }

  .confirm-actions {
    flex-direction: column;
    padding: 0 20px 20px 20px;
    gap: 10px;
  }

  .btn-confirm,
  .btn-cancel-confirm {
    width: 100%;
    padding: 10px 20px;
    font-size: 13px;
    min-width: 0;
  }

  .btn-confirm svg,
  .btn-cancel-confirm svg {
    width: 14px;
    height: 14px;
  }
}
/* Global Theme Variables - CSS Custom Properties */
/* These variables are automatically updated by ThemeContext */

:root {
  /* Primary Colors - Orange Theme */
  --color-primary-50: #fff7ed;
  --color-primary-100: #ffedd5;
  --color-primary-200: #fed7aa;
  --color-primary-300: #fdba74;
  --color-primary-400: #fb923c;
  --color-primary-500: #f97316;
  --color-primary-600: #ea580c;
  --color-primary-700: #c2410c;
  --color-primary-800: #9a3412;
  --color-primary-900: #7c2d12;
  
  /* Success Colors */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-200: #bbf7d0;
  --color-success-300: #86efac;
  --color-success-400: #4ade80;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;
  --color-success-800: #166534;
  --color-success-900: #14532d;
  
  /* Error Colors */
  --color-error-50: #fef2f2;
  --color-error-100: #fecaca;
  --color-error-200: #fca5a5;
  --color-error-300: #f87171;
  --color-error-400: #f56565;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;
  
  /* Warning Colors */
  --color-warning-50: #fefce8;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;
  
  /* Gray Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
}

/* Theme Helper Classes */
.theme-primary {
  color: #f97316;
  color: var(--color-primary-500);
}

.theme-primary-bg {
  background-color: #f97316;
  background-color: var(--color-primary-500);
}

.theme-primary-border {
  border-color: #f97316;
  border-color: var(--color-primary-500);
}

.theme-success {
  color: #22c55e;
  color: var(--color-success-500);
}

.theme-success-bg {
  background-color: #22c55e;
  background-color: var(--color-success-500);
}

.theme-error {
  color: #ef4444;
  color: var(--color-error-500);
}

.theme-error-bg {
  background-color: #ef4444;
  background-color: var(--color-error-500);
}

.theme-warning {
  color: #f59e0b;
  color: var(--color-warning-500);
}

.theme-warning-bg {
  background-color: #f59e0b;
  background-color: var(--color-warning-500);
}

/* Primary Gradient Helper Classes */
.theme-gradient-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
}

.theme-gradient-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  background: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
}

.theme-gradient-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-600) 100%);
}

.theme-gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  background: linear-gradient(135deg, var(--color-warning-500) 0%, var(--color-warning-600) 100%);
}

/* Background Helper Classes */
.theme-bg-primary {
  background-color: #ffffff;
  background-color: var(--color-bg-primary);
}

.theme-bg-secondary {
  background-color: #f8fafc;
  background-color: var(--color-bg-secondary);
}

.theme-bg-tertiary {
  background-color: #f1f5f9;
  background-color: var(--color-bg-tertiary);
}

/* Text Color Helper Classes */
.theme-text-primary {
  color: #111827;
  color: var(--color-gray-900);
}

.theme-text-secondary {
  color: #4b5563;
  color: var(--color-gray-600);
}

.theme-text-muted {
  color: #6b7280;
  color: var(--color-gray-500);
}

/* Border Helper Classes */
.theme-border {
  border-color: #e5e7eb;
  border-color: var(--color-gray-200);
}

.theme-border-light {
  border-color: #f3f4f6;
  border-color: var(--color-gray-100);
}
/* Import theme variables */

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  background-color: #f8f9fa;
}

.App {
  height: 100vh;
  overflow: hidden;
}

.page-placeholder {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #fafbfc;
}

.page-placeholder h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.page-placeholder p {
  color: #6b7280;
  font-size: 16px;
}

