/* Mancosa Admin Dashboard Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafbfc;
  color: #2d3748;
  line-height: 1.6;
}

/* Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: 
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid #e2e8f0;
  box-shadow: 0 0 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.logo-container {
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

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

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  flex-shrink: 0;
}

.sidebar-footer .nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-footer .nav-item:last-child {
  margin-bottom: 0;
}

/* Navigation Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #374151;
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.nav-link.active:hover {
  transform: translateX(0);
  background: linear-gradient(135deg, #138f7a 0%, #27ae60 100%);
}

.nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}



.text-danger{
  color: #e74c3c;
}

.text-danger:hover{
  color: #ad2718;
}

.logout-link:hover {
  background: #f1f5f9 !important;
  color: #dc2626 !important;
  transform: translateX(2px);
}

.logout-link i {
  color: inherit;
}

/* Admin section styling */
.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.5rem 1rem 0.75rem 1rem;
  margin-top: 0.5rem;
}

.sidebar-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
  margin: 1rem;
  opacity: 0.7;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "main";
  }
  
  .mobile-menu-btn {
    display: flex !important;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
    transform: scale(1.05);
  }
  
  .mobile-menu-btn:active {
    transform: scale(0.95);
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 280px;
    z-index: 100000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .header {
    padding: 1rem;
  }
  
  .user-menu {
    font-size: 0.9rem;
  }
  
  .user-info {
    text-align: right;
  }
  
  .user-name {
    display: block;
    font-weight: 600;
  }
  
  .user-email {
    display: none;
  }
  
  /* Mobile close button - elegant styling */
  .mobile-close-btn {
    display: flex !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
  }
  
  .mobile-close-btn:hover {
    background: rgba(241, 245, 249, 0.9);
    color: #374151;
    border-color: #cbd5e1;
    transform: scale(1.05);
  }
  
  .mobile-close-btn:active {
    transform: scale(0.95);
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.2rem;
  }
  
  .user-name {
    font-size: 0.85rem;
  }
  
  .sidebar {
    width: 260px;
    left: -260px;
  }
}

/* Header Updates */
.header {
  grid-area: header;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1000;
}

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

.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile close button - hidden by default */
.mobile-close-btn {
  display: none !important;
}

.mobile-menu-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #374151;
  transform: scale(1.05);
}

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

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.user-email {
  color: #64748b;
  font-size: 0.85rem;
}

/* Main Content */
.main-content {
  grid-area: main;
  padding: 2rem;
  overflow-y: auto;
  background: #fafbfc;
}

/* Logo and Branding */
.logo-placeholder {
  width: 130px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.logo-placeholder i {
  color: white;
  font-size: 1.5rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d3748;
  letter-spacing: -0.5px;
}

/* Navigation */
.nav-menu {
  padding: 0 1rem;
}

.nav-item {
  margin-bottom: 0.5rem;
}

/* Sidebar divider */
.sidebar-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
  margin: 1.5rem 1rem;
  opacity: 0.7;
}

/* Admin navigation links */
.nav-link.admin-link {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-link.admin-link:hover {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
  border-left-color: #16a085;
  transform: translateX(2px);
}

.nav-link.admin-link.active {
  background: rgba(22, 160, 133, 0.1);
  color: #16a085;
  border-left-color: #16a085;
  box-shadow: none;
}

.nav-link.admin-link i {
  opacity: 0.7;
  font-size: 0.9rem;
}

.nav-link i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

/* Header */
.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}

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

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d3748;
}

.user-email {
  font-size: 0.8rem;
  color: #64748b;
}

.user-actions {
  display: flex;
  align-items: center;
}

/* Removed duplicate logout-link styles - using sidebar footer styles instead */

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* Dashboard Specific Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Search */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container i {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  z-index: 1;
}

.search-input {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  font-size: 0.9rem;
  width: 300px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-outline {
  background: transparent;
  color: #16a085;
  border: 1px solid #16a085;
}

.btn-outline:hover {
  background: #16a085;
  color: white;
}

.btn-secondary {
  background: #f8fafc;
  color: #6b7280;
  border: 1px solid #e2e8f0;
}

.btn-secondary:disabled {
  opacity: 0.6;
}

.btn-full {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

/* Statistics Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
}

/* Courses Section */
.courses-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: #f1f5f9;
  color: #16a085;
}

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

.course-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: auto;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  background: white;
}

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

.course-header {
  position: relative;
  flex-shrink: 0;
}

.course-image {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Course Status */
.course-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-progress {
  background: #7fe5ff;
  color: #13416d;
}

.status-completed {
  background: #dbeafe;
  color: #1e40af;
}

.status-pending {
  background: #f3f4f6;
  color: #6b7280;
}

/* Course Content */
.course-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-height: 150px;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.course-description {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.course-students,
.course-progress {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.course-actions {
  display: block;
  margin-top: auto;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "main";
  }
  
  .sidebar {
    display: none;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-actions {
    flex-direction: column;
  }
  
  .search-input {
    width: 100%;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Login Page Styles */
.login-body {
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

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

.login-header {
  text-align: center;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.logo-container-login {
  margin-bottom: 2rem;
}

.logo-login {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(22, 160, 133, 0.2));
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.5;
}

.login-form {
  padding: 2rem;
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #16a085;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 0 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInDown 0.5s ease-out;
}

.success-message i {
  color: #16a085;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.success-message .message-text {
  color: #155724;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-label i {
  color: #16a085;
  width: 16px;
}

.form-input {
  width: 100%;
  padding: 1rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafbfc;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #16a085;
  background: white;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #16a085;
  cursor: pointer;
}

.checkbox-label {
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  color: #16a085;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #2ecc71;
}

.btn-login {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 1rem;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 160, 133, 0.4);
}

.login-footer {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-text {
  color: #64748b;
  font-size: 0.9rem;
}

.support-link {
  color: #16a085;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
}

.support-link:hover {
  color: #2ecc71;
}

/* Responsive Login */
@media (max-width: 480px) {
  .login-body {
    padding: 1rem;
  }
  
  .login-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  .login-form {
    padding: 1.5rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .checkbox-group {
    justify-content: center;
  }
}

/* Account Setup Specific Styles */
.setup-container {
  max-width: 550px;
}

.setup-form {
  padding: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

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

/* Error message styling for setup page */
.setup-container .success-message.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.setup-container .success-message.alert-danger i {
  color: #dc3545;
}

.password-requirements {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.requirements-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirements-title::before {
  content: "🔒";
  font-size: 1rem;
}

.requirements-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.requirement:last-child {
  margin-bottom: 0;
}

.requirement i {
  color: #16a085;
  font-size: 0.8rem;
  width: 14px;
  flex-shrink: 0;
}

/* Password requirement validation states */
.requirement.req-met {
  color: #16a085;
}

.requirement.req-met .req-icon {
  color: #16a085;
}

.requirement.req-unmet {
  color: #9ca3af;
}

.requirement.req-unmet .req-icon {
  color: #ef4444;
}

.req-icon {
  transition: all 0.3s ease;
}

/* Phone validation styles */
.phone-validation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.phone-validation.phone-valid {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #16a085;
  color: #155724;
}

.phone-validation.phone-valid i {
  color: #16a085;
}

.phone-validation.phone-invalid {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #ef4444;
  color: #721c24;
}

.phone-validation.phone-invalid i {
  color: #ef4444;
}

.phone-validation.phone-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 1px solid #64748b;
  color: #0c5460;
}

.phone-validation.phone-info i {
  color: #64748b;
}

/* Mobile responsiveness for account setup */
@media (max-width: 600px) {
  .setup-container {
    max-width: 100%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group-half {
    margin-bottom: 1.5rem;
  }
  
  .setup-form {
    padding: 1.5rem;
  }
  
  .password-requirements {
    padding: 1rem;
  }
}

/* Admin Interface Styles */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

/* Message Display */
.message-display {
  margin-bottom: 2rem;
}

.success-message, .error-message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInDown 0.5s ease-out;
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #16a085;
  color: #155724;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #ef4444;
  color: #721c24;
}

.success-message i {
  color: #16a085;
  font-size: 1.2rem;
}

.error-message i {
  color: #ef4444;
  font-size: 1.2rem;
}

/* Admin Search */
.admin-search {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

/* Users Section */
.users-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  color: #64748b;
  font-size: 0.9rem;
}

/* Users Table */
.users-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.users-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

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

.user-name {
  font-weight: 600;
  color: #2d3748;
}

.user-meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

/* User Type Badges */
.user-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-admin {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.type-user {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.last-login {
  font-size: 0.9rem;
  color: #64748b;
}

/* Actions */
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-btn:hover {
  border-color: #16a085;
  color: #16a085;
  background: #f0fdfa;
}

.page-btn.active {
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  color: white;
  border-color: #16a085;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInUp 0.3s ease-out;
}

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

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #374151;
}

.invite-form {
  padding: 2rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

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

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

/* Admin Actions */
.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Modal Enhancements */
.modal-content-large {
  max-width: 700px;
}

.modal-body {
  padding: 2rem;
}

.modal-description {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.5;
}

/* Template Info Card */
.template-info {
  margin-bottom: 2rem;
}

.info-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  color: #0284c7;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Upload Area in Modal */
.upload-area {
  margin-top: 1rem;
}

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafbfc;
  position: relative;
}

.dropzone:hover {
  border-color: #16a085;
  background: #f0fdfa;
}

.dropzone.dragover {
  border-color: #16a085;
  background: #f0fdfa;
  transform: scale(1.02);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dropzone-icon {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.dropzone-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.dropzone-text p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.file-size {
  color: #64748b;
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.upload-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* Import Results */
.import-results {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  border-left: 4px solid #16a085;
}

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

.results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.result-stat {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.stat-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #16a085;
}

.stat-failed {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-color: #ef4444;
}

.stat-total {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #3b82f6;
}

.stat-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #f39c12;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-success .stat-number {
  color: #16a085;
}

.stat-failed .stat-number {
  color: #ef4444;
}

.stat-total .stat-number {
  color: #3b82f6;
}

.stat-warning .stat-number {
  color: #f39c12;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Errors Section */
.errors-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.errors-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.errors-title::before {
  content: "⚠️";
  font-size: 1rem;
}

.errors-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.error-item {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  align-items: center;
}

.error-row {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-width: 60px;
}

.error-email {
  font-weight: 500;
  color: #374151;
  word-break: break-all;
}

.error-message {
  color: #dc2626;
  font-size: 0.9rem;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 400px;
  z-index: 9999;
  animation: slideInNotification 0.3s ease-out;
}

.notification-success {
  border-left-color: #16a085;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.notification-error {
  border-left-color: #e74c3c;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.notification i {
  font-size: 1.2rem;
}

.notification-success i {
  color: #16a085;
}

.notification-error i {
  color: #e74c3c;
}

.notification span {
  flex: 1;
  font-weight: 500;
  color: #2d3748;
}

.notification-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

@keyframes slideInNotification {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button loading state */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Account Settings Page */
.account-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.account-header {
  text-align: center;
  margin-bottom: 3rem;
}

.account-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.account-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.5;
}

.account-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.account-form {
  padding: 0;
}

.form-section {
  padding: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
  border-bottom: none;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
  border-radius: 2px;
}

.section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-actions {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Account-specific form styling */
.account-form .form-group {
  margin-bottom: 1.5rem;
}

.account-form .form-input {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.account-form .form-input:focus {
  background: white;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.account-form .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.account-form .form-label i {
  color: #16a085;
  width: 16px;
}

/* Password requirements specific to account page */
.account-form .password-requirements {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.account-form .requirements-title {
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.account-form .requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-form .requirement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
}

.account-form .req-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.account-form .req-unmet .req-icon {
  color: #ef4444;
}

.account-form .req-met .req-icon {
  color: #16a085;
}

.account-form .req-unmet {
  color: #64748b;
}

.account-form .req-met {
  color: #16a085;
  font-weight: 500;
}

/* Success/Error message styling for account page */
.account-container .message-display {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.account-container .success-message {
  border-left-color: #16a085;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.account-container .error-message {
  border-left-color: #e74c3c;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.account-container .success-message i {
  color: #16a085;
  font-size: 1.2rem;
}

.account-container .error-message i {
  color: #e74c3c;
  font-size: 1.2rem;
}

.account-container .message-text {
  font-weight: 500;
  flex: 1;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .admin-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .modal-content-large {
    max-width: 95%;
    margin: 2rem auto;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .dropzone {
    padding: 2rem 1rem;
  }
  
  .dropzone-icon {
    font-size: 2rem;
  }
  
  .file-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .results-summary {
    grid-template-columns: 1fr;
  }
  
  .error-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .upload-actions {
    flex-direction: column;
  }
  
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
  
  /* Account page mobile */
  .account-container {
    padding: 1rem;
  }
  
  .account-title {
    font-size: 2rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .form-actions {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
} 

/* Admin Courses Management Styles */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-courses-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #16a085;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-courses-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.admin-courses-header .subtitle {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* Courses Table */
.courses-table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.courses-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.courses-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.courses-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.courses-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.courses-table tbody tr {
  transition: all 0.2s ease;
}

.courses-table tbody tr:hover {
  background: #f8fafc;
}

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

/* Status badges */
.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #dc2626;
}

/* Course Form Modal - Specific to courses management */
.admin-container .modal,
#courseFormModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.admin-container .modal-content,
#courseFormModal .modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 350px;
  animation: slideInModal 0.3s ease-out;
}

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

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-container .modal-header,
#courseFormModal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
}

.admin-container .modal-header h3,
#courseFormModal .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.admin-container .modal-close,
#courseFormModal .modal-close {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.admin-container .modal-close:hover,
#courseFormModal .modal-close:hover {
  background: #e2e8f0;
  color: #374151;
  transform: scale(1.05);
}

.admin-container .modal-body,
#courseFormModal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

.admin-container .modal-preview,
#courseFormModal .modal-preview {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
  border-left: 1px solid #e2e8f0;
  overflow-y: auto;
}

.admin-container .modal-preview h4,
#courseFormModal .modal-preview h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Course Preview Card - Specific to courses management */
.admin-container .course-card-preview,
#courseFormModal .course-card-preview {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 300px;
}

.admin-container .course-card-preview img,
#courseFormModal .course-card-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.admin-container .course-card-preview h4,
#courseFormModal .course-card-preview h4 {
  margin: 1rem 1rem 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
}

.admin-container .course-card-preview p,
#courseFormModal .course-card-preview p {
  margin: 0 1rem 1rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-container .course-card-preview > div:nth-child(4),
#courseFormModal .course-card-preview > div:nth-child(4) {
  margin: 0 1rem 1rem 1rem;
}

.admin-container .course-card-preview a,
#courseFormModal .course-card-preview a {
  display: inline-block;
  margin: 0 1rem;
  color: #16a085;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-container .course-card-preview a:hover,
#courseFormModal .course-card-preview a:hover {
  text-decoration: underline;
}

.admin-container .course-card-preview > div:last-child,
#courseFormModal .course-card-preview > div:last-child {
  margin: 0.5rem 1rem 1rem 1rem;
  padding-bottom: 0.5rem;
}

/* Form Styles - Specific to courses management */
.admin-container .form-row,
#courseFormModal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-container .form-group,
#courseFormModal .form-group {
  margin-bottom: 1.5rem;
}

.admin-container .form-group.form-group-half,
#courseFormModal .form-group.form-group-half {
  margin-bottom: 1.5rem;
}

.admin-container .form-group label,
#courseFormModal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.admin-container .form-input,
.admin-container .form-input[type="text"],
.admin-container .form-input[type="number"],
.admin-container .form-input[type="url"],
.admin-container textarea.form-input,
.admin-container select.form-input,
#courseFormModal .form-input,
#courseFormModal .form-input[type="text"],
#courseFormModal .form-input[type="number"],
#courseFormModal .form-input[type="url"],
#courseFormModal textarea.form-input,
#courseFormModal select.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #fafbfc;
  transition: all 0.2s ease;
}

.admin-container .form-input:focus,
.admin-container textarea.form-input:focus,
.admin-container select.form-input:focus,
#courseFormModal .form-input:focus,
#courseFormModal textarea.form-input:focus,
#courseFormModal select.form-input:focus {
  outline: none;
  border-color: #16a085;
  background: white;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.admin-container textarea.form-input,
#courseFormModal textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.admin-container .form-actions,
#courseFormModal .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Responsive Design for Modal - Specific to courses management */
@media (max-width: 1024px) {
  .admin-container .modal-content,
  #courseFormModal .modal-content {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  
  .admin-container .modal-preview,
  #courseFormModal .modal-preview {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
  
  .admin-container .course-card-preview,
  #courseFormModal .course-card-preview {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .admin-container .modal-content,
  #courseFormModal .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .admin-container .modal-body,
  .admin-container .modal-preview,
  #courseFormModal .modal-body,
  #courseFormModal .modal-preview {
    padding: 1.5rem;
  }
  
  .admin-container .form-row,
  #courseFormModal .form-row {
    grid-template-columns: 1fr;
  }
} 

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "main";
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 280px;
    z-index: 9998;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .header {
    padding: 1rem;
  }
  
  .user-menu {
    font-size: 0.9rem;
  }
  
  .user-info {
    text-align: right;
  }
  
  .user-name {
    display: block;
    font-weight: 600;
  }
  
  .user-email {
    display: none;
  }
  
  /* Mobile close button - show on mobile */
  .mobile-close-btn {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 10;
  }
  
  .mobile-close-btn:hover {
    background: #e2e8f0;
    color: #374151;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.2rem;
  }
  
  .user-name {
    font-size: 0.85rem;
  }
  
  .sidebar {
    width: 260px;
    left: -260px;
  }
} 
