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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: width 0.3s ease, transform 0.3s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  width: 80px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #1565c0;
  transform: scale(1.05);
}

.mobile-menu-toggle.menu-open {
  background: #dc2626;
}

.mobile-menu-toggle.menu-open:hover {
  background: #b91c1c;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.show {
  opacity: 1;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-info {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.875rem;
}

.sidebar.collapsed .user-profile {
  justify-content: center;
}

.sidebar-header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1.5rem 1rem;
  flex-direction: column;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
}
.logo-img {
 
}
.logo-img-expanded {
  width: 100%;
  transition-property: width;
}

.logo-img-collapsed {
  width: 0;
  transition-property: width;
}

.sidebar.collapsed .logo-img-expanded {
  width: 0;
  transition-delay: 0.2s;
  transition-property: width;
}

.sidebar.collapsed .logo-img-collapsed {
 width: 100%;
  transition-delay: 0.2s;
  transition-property: width;
}

.sidebar.collapsed .logo i {
  padding: 0.85rem;
}



.logo-icon {
  font-size: 1.75rem;
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-collapse {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.sidebar-collapse:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed .sidebar-content {
  padding: 1rem 0.5rem;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin: 0.25rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  transform: translateX(4px);
}

.sidebar.collapsed .nav-link:hover {
  transform: none;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-right: 3px solid #fbbf24;
}

.sidebar.collapsed .nav-link.active {
  border-right: none;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
}

.nav-icon {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.nav-text {
  font-weight: 500;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar.collapsed .sidebar-footer {
  padding: 1rem 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: justify-content 0.3s ease;
  flex: 1;
}

.sidebar.collapsed .user-profile {
  justify-content: center;
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.collapsed .user-info {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.user-name {
  font-weight: 600;
  font-size: 0.875rem;
}

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

.logout-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar.collapsed .logout-btn {
  margin-top: 0.5rem;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  background-color: #f8fafc;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed+.main-content {
  margin-left: 80px;
}

/* Help Popup Styles */
.help-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.help-popup.show {
  opacity: 1;
  visibility: visible;
}

.help-popup-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.help-popup.show .help-popup-content {
  transform: scale(1);
}

.help-popup-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.help-popup-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.help-popup-header i {
  color: #1976d2;
}

.help-popup-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.help-popup-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.help-popup-body {
  padding: 0 1.5rem 1.5rem;
}

.help-popup-body p {
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.help-popup-body ul {
  list-style: none;
  margin: 1rem 0;
}

.help-popup-body li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.help-popup-body li i {
  color: #1976d2;
  width: 1rem;
}

.help-popup-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.help-popup-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
}

.help-popup-checkbox input {
  margin: 0;
}

.page-header {
  background: white;
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.title-icon {
  color: #1976d2;
}

.page-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

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

.btn-primary {
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.btn-outline {
  background: transparent;
  color: #1976d2;
  border: 2px solid #1976d2;
}

.btn-outline:hover {
  background-color: #1976d2;
  color: white;
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Content Wrapper */
.content-wrapper {
  padding: 2rem;
}

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

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

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Content Sections */
.content-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.content-section {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.section-title i {
  color: #1976d2;
}

.section-link {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

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

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease;
}

.project-item:hover {
  border-color: #1976d2;
}

.project-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.project-client {
  color: #6b7280;
  font-size: 0.875rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

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

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

/* Notification List */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f9fafb;
}

.notification-icon {
  width: 2rem;
  height: 2rem;
  background-color: #1976d2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.notification-text {
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.notification-time {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.service-content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
}

.service-features i {
  color: #10b981;
  font-size: 0.75rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: white;
  color: #1976d2;
}

.cta-actions .btn-primary:hover {
  background: #f3f4f6;
}

.cta-actions .btn-outline {
  border-color: white;
  color: white;
}

.cta-actions .btn-outline:hover {
  background: white;
  color: #1976d2;
}

/* Forms Page Specific Styles */
.forms-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.forms-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.forms-section h3 i {
  color: #1976d2;
}

.forms-link-card {
  background: linear-gradient(135deg, #1976d2 0%, #1976d2 100%);
  border-radius: 1rem;
  padding: 2rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.forms-link-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.forms-link-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.forms-link-input {
  background: white;
  color: #1f2937;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.copy-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  display: inline;
}

.copy-button:hover {
  background: white;
  color: #1976d2;
}

.copy-button.copied {
  background: #10b981;
  border-color: #10b981;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-container video,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.instructions-list {
  list-style: none;
  margin: 1.5rem 0;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border-left: 4px solid #1976d2;
}

.instructions-list .step-number {
  background: #1976d2;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.instructions-list .step-content {
  flex: 1;
}

.instructions-list .step-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.instructions-list .step-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.highlight-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
}

.highlight-box h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-box p {
  color: #92400e;
  margin: 0;
  font-size: 0.875rem;
}

/* Training Plan Specific Styles */
.company-info-section {
  margin-bottom: 2rem;
}

.company-info-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.company-info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.company-info-card h3 i {
  color: #1976d2;
}

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

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

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

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.training-table-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.training-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.training-table th,
.training-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.training-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
}

.training-table tbody tr:hover {
  background-color: #f9fafb;
}

.editable-cell {
  min-width: 100px;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: border-color 0.2s ease;
}

.editable-cell:focus {
  outline: none;
  border-color: #1976d2;
  background-color: #f0f9ff;
}

.form-select,
.form-input {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background-color: white;
  transition: border-color 0.2s ease;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #1976d2;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.add-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Course Selection Popup */
.course-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.course-popup .popup-overlay {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 95vw;
  max-height: 90vh;
  width: 1200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.popup-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.popup-header h3 i {
  color: #1976d2;
}

.popup-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.popup-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.popup-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-section {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: white;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #1976d2;
}

.popup-table-container {
  flex: 1;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.popup-table th,
.popup-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.popup-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
}

.popup-table tbody tr:hover {
  background-color: #f9fafb;
}

.pagination-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.pagination-info {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 4rem 2rem;
  margin-bottom: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-icon {
  color: #fbbf24;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}



.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}


/* Features Section */
.features-section {
  margin-bottom: 4rem;
}

.section-description {
  color: #6b7280;
  font-size: 1.125rem;
  text-align: center;
  margin-top: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1976d2, #1565c0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.training-card::before {
  background: linear-gradient(90deg, #1976d2, #1565c0);
}

.forms-card::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.management-card::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

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

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.forms-card .feature-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.management-card .feature-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-badge {
  background: #fbbf24;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-content {
  flex: 1;
  margin-bottom: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
}

.highlight-item i {
  color: #1976d2;
  width: 1rem;
}

.forms-card .highlight-item i {
  color: #10b981;
}

.management-card .highlight-item i {
  color: #8b5cf6;
}

.feature-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.feature-stats i {
  color: #1976d2;
  margin-right: 0.5rem;
}

/* Quick Start Section */
.quick-start-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-bottom: 4rem;
}

.quick-start-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.quick-start-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-start-title i {
  color: #1976d2;
}

.quick-start-description {
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.6;
}

.quick-start-actions {
  display: flex;
  gap: 1.5rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 200px;
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quick-action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.training-btn .quick-action-icon {
  background: linear-gradient(135deg, #1976d2, #1565c0);
}

.forms-btn .quick-action-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.management-btn .quick-action-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.quick-action-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.quick-action-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Training Offer Section */
.training-offer-section {
  margin-bottom: 4rem;
}

.training-offer-card {
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  border-radius: 1.5rem;
  padding: 3rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: 0 20px 40px rgba(25, 118, 210, 0.3);
  position: relative;
  overflow: hidden;
}

.training-offer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.training-offer-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.training-offer-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.training-offer-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.training-offer-description {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.training-offer-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.offer-highlight i {
  color: #10b981;
  font-size: 1rem;
}

.training-offer-action {
  text-align: center;
  flex-shrink: 0;
}

.training-offer-btn {
  background: white;
  color: #1976d2;
  font-size: 1.125rem;
  padding: 1.25rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.training-offer-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.training-offer-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.training-offer-note i {
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }


  .features-grid {
    grid-template-columns: 1fr;
  }

  .quick-start-content {
    flex-direction: column;
    text-align: center;
  }

  .content-sections {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

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

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .add-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }




  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-highlights {
    grid-template-columns: 1fr;
  }

  .quick-start-section {
    padding: 2rem;
  }

  .quick-start-actions {
    flex-direction: column;
    width: 100%;
  }

  .quick-action-btn {
    min-width: auto;
  }

  .training-offer-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }

  .training-offer-content {
    flex-direction: column;
    text-align: center;
  }

  .training-offer-title {
    font-size: 1.75rem;
  }

  .sidebar {
    transform: translateX(-280px);
    width: 100%;
    max-width: 280px;
  }

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

  .sidebar.collapsed {
    width: 280px;
    max-width: 280px;
    transform: translateX(-280px);
  }

  .sidebar.collapsed.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding-top: 4rem;
  }

  .sidebar.collapsed+.main-content {
    margin-left: 0;
  }

  .sidebar-collapse {
    display: block;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .training-table {
    font-size: 0.75rem;
  }

  .training-table th,
  .training-table td {
    padding: 0.5rem;
  }

  .filters-section {
    grid-template-columns: 1fr;
  }

  .course-popup .popup-overlay {
    width: 95vw;
    height: 90vh;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .help-popup-content {
    width: 95%;
    margin: 1rem;
  }

  .help-popup-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }


  .feature-card {
    padding: 1.5rem;
  }

  .quick-start-section {
    padding: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .training-offer-card {
    padding: 1.5rem;
  }

  .training-offer-title {
    font-size: 1.5rem;
  }

  .training-offer-description {
    font-size: 1rem;
  }

  .training-offer-highlights {
    align-items: center;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .page-header {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 2rem;
  }

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