/* Dashboard Styles - Stepwize Theme */

.hidden {
  display: none !important;
}

.dashboard-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  min-height: 100vh;
}

/* Header Styles */
.dashboard-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00008B;
  display: flex;
  align-items: center;
}

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

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

.user-profile {
  position: relative;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  background-color: #f3f4f6;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

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

.profile-avatar-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #00008B; /* Stepwize blue */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-letter {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.profile-role {
  font-size: 0.75rem;
  color: #6b7280;
}

.dropdown-arrow {
  color: #6b7280;
  transition: transform 0.2s ease;
}

.profile-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  z-index: 50;
  display: none;
}

.profile-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.company-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.company-role {
  font-size: 0.75rem;
  color: #6b7280;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f9fafb;
}

.dropdown-item.sign-out {
  color: #ef4444;
}

/* Sidebar Styles */
.dashboard-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
  width: 250px;
  background-color: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav {
  padding: 0 1rem;
}

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

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.nav-link.active {
  background-color: #eff6ff;
  color: #00008B;
}

.nav-icon {
  flex-shrink: 0;
}

.nav-text {
  font-size: 0.875rem;
}

/* Guides Remaining Widget */
.guides-remaining-widget {
  margin: 1.5rem 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border: 1px solid #b3d9ff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 139, 0.08);
}

.guides-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.guides-widget-icon {
  color: #00008B;
  flex-shrink: 0;
}

.guides-widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #00008B;
}

.guides-widget-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guides-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.guides-number {
  font-size: 2rem;
  font-weight: 700;
  color: #00008B;
  line-height: 1;
}

.guides-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.guides-progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guides-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.guides-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00008B 0%, #4169e1 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.guides-progress-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-avatar {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Company avatar uses letter avatar - override border-radius for square look if needed */
.company-avatar .profile-avatar-letter {
  border-radius: 4px;
}

.company-details {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.company-plan {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Main Content */
.dashboard-main {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  min-width: 0;
}

.dashboard-content {
  max-width: 100%;
}

/* Content Area */
.content-area {
  width: 100%;
}

.content-pane {
  display: none;
}

.content-pane.active {
  display: block;
}

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00008B;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* Buttons */
.btn-primary {
  background-color: #00008B;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #00006B;
  transform: translateY(-1px);
}

/* Credits Counter Badge */
.credits-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0f4ff, #e0f2fe);
  border: 2px solid #00008B;
  padding: 0.625rem 1.25rem;
  border-radius: 20px;
  margin-right: 1rem;
  font-weight: 600;
  color: #00008B;
  transition: all 0.2s ease;
}

.credits-counter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.2);
}

.credits-counter svg {
  width: 20px;
  height: 20px;
  stroke: #00008B;
}

.credits-label {
  font-size: 0.875rem;
  color: #4b5563;
}

.credits-amount {
  font-size: 1.125rem;
  font-weight: 800;
  color: #00008B;
}

.credits-warning {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.btn-secondary {
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #9ca3af;
  color: #374151;
}

.btn-link {
  background: none;
  border: none;
  color: #00008B;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-link:hover {
  color: #00006B;
}

/* Overview Tab Styles */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.summary-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e5e7eb;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.summary-card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon.employees {
  background-color: #3b82f6;
}

.card-icon.guides {
  background-color: #10b981;
}

.card-icon.completed {
  background-color: #8b5cf6;
}

.card-icon.pending {
  background-color: #f59e0b;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.card-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00008B;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.card-change.positive {
  color: #10b981;
}

.card-change.negative {
  color: #ef4444;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.top-guides-section,
.quick-actions-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00008B;
  margin: 0;
  letter-spacing: -0.01em;
}

.view-all-link {
  color: #00008B;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

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

.guides-preview-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-preview-item {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.guide-preview-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guide-preview-info {
  margin-bottom: 0.75rem;
}

.guide-preview-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guide-preview-status.published {
  background-color: #d1fae5;
  color: #065f46;
}

.guide-preview-status.draft {
  background-color: #fef3c7;
  color: #92400e;
}

.guide-preview-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.guide-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.meta-separator {
  color: #d1d5db;
}

.guide-preview-progress {
  margin-top: 0.75rem;
}

.guide-preview-progress .progress-bar {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.guide-preview-progress .progress-fill {
  height: 100%;
  background-color: #00008B;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-action-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.quick-action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.action-icon {
  width: 40px;
  height: 40px;
  background: #00008B;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.quick-action-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.quick-action-link:hover {
  border-color: #00008B;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  background: #f9fafb;
}

.action-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* Employees Tab Styles */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

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

.search-input:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

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

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

.filter-select:focus {
  outline: none;
  border-color: #00008B;
}

.bulk-actions {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bulk-info {
  font-size: 0.875rem;
  color: #374151;
}

.bulk-buttons {
  display: flex;
  gap: 0.75rem;
}

.table-container {
  background: white;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.employees-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* Column width constraints to prevent overflow */
.employees-table .name-column {
  min-width: 150px;
  max-width: 200px;
}

.employees-table .email-column {
  min-width: 180px;
  max-width: 220px;
}

.employees-table .department-column {
  min-width: 120px;
  max-width: 150px;
}

.employees-table .guides-column {
  min-width: 100px;
  max-width: 120px;
  text-align: center;
}

.employees-table .actions-column {
  width: 100px;
  min-width: 100px;
  text-align: right;
}

/* Prevent text overflow in cells */
.employees-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.employees-table .name-column,
.employees-table .email-column {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}

.employees-table th {
  background: #f9fafb;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.employees-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.employees-table tr:hover {
  background: #f9fafb;
}

.checkbox-column {
  width: 40px;
}

.select-all-checkbox,
.employee-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #00008B;
}

.employee-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.employee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

/* Employee info uses profile-avatar-letter instead of employee-avatar img */
.employee-info .profile-avatar-letter {
  margin-right: 0.75rem;
}

.employee-details {
  display: flex;
  flex-direction: column;
}

.employee-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.employee-title {
  font-size: 0.75rem;
  color: #6b7280;
}

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

.department-badge.sales {
  background: #dbeafe;
  color: #1e40af;
}

.department-badge.marketing {
  background: #fce7f3;
  color: #be185d;
}

.department-badge.operations {
  background: #f0fdf4;
  color: #166534;
}

.department-badge.hr {
  background: #fef3c7;
  color: #92400e;
}

.role-badge.manager {
  background: #e0e7ff;
  color: #3730a3;
}

.role-badge.employee {
  background: #f0f9ff;
  color: #0c4a6e;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

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

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

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

.action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-top: 1px solid #e5e7eb;
}

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

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  background: none;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

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

.pagination-pages {
  display: flex;
  gap: 0.25rem;
}

.page-btn {
  background: none;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  min-width: 2.5rem;
}

.page-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.page-btn.active {
  background: #00008B;
  border-color: #00008B;
  color: white;
}

.page-ellipsis {
  padding: 0.5rem 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Guides Tab Styles */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

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

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

.guide-status.published {
  background: #d1fae5;
  color: #065f46;
}

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

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

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

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

.guide-content {
  padding: 1.5rem;
}

.guide-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #00008B;
  margin: 0 0 0.5rem 0;
}

.guide-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.guide-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.guide-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.guide-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00008B;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.guide-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

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

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

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

.metric-title {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.metric-trend.positive {
  color: #10b981;
}

.metric-trend.negative {
  color: #ef4444;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00008B;
  margin: 0 0 0.5rem 0;
}

.metric-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.charts-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.chart-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.chart-container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  border-color: #e5e7eb;
  transform: translateY(-2px);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #f3f4f6;
}

.chart-header > div:first-child {
  flex: 1;
}

.chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00008B;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.chart-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-color.legend-blue {
  background: #3b82f6;
}

.legend-color.legend-gray {
  background: #d1d5db;
}

.chart-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
}

/* Chart Canvas Styling */
.chart-wrapper {
  position: relative;
  height: 350px;
  width: 100%;
  padding: 1.5rem;
}

.chart-container.full-width .chart-wrapper {
  height: 400px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  height: 200px;
}

.bar {
  width: 30px;
  background: linear-gradient(to top, #00008B, #3b82f6);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
}

.chart-labels {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.chart-labels span {
  width: 30px;
  text-align: center;
}

.pie-chart-mock {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    #3b82f6 0deg 126deg,
    #10b981 126deg 198deg,
    #f59e0b 198deg 270deg,
    #8b5cf6 270deg 360deg
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailed-analytics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.analytics-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.analytics-section .table-container {
  margin-top: 1rem;
}

/* Impact Table Styling */
.impact-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.impact-table-container .tracking-table {
  min-width: 100%;
}

.impact-table-container .tracking-table tbody tr:hover {
  background-color: #f9fafb;
}

.impact-table-container .tracking-table tbody td {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f3f4f6;
}

/* Table Cell Utilities */
.text-right {
  text-align: right;
}

.guide-name {
  font-weight: 500;
  color: #1e293b;
}

.value-cell {
  font-weight: 600;
  color: #1e293b;
}

/* ============================================
   IMPACT TAB STYLES
   ============================================ */

/* Impact Content Container */
.impact-content {
  padding: 0;
  animation: fadeIn 0.5s ease-in;
}

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

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 2.5rem 0;
  border: none;
}

/* Impact Header */
.impact-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.roi-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

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

.roi-banner-content {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.roi-main-value {
  flex: 1;
  min-width: 200px;
}

.roi-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.roi-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.roi-stat-item {
  text-align: right;
}

.roi-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.roi-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.roi-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.roi-badge-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.roi-badge-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.roi-footer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.impact-footnote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.footnote-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-period-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.period-select {
  min-width: 150px;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Insights Banner */
.insights-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 2px solid #7dd3fc;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  position: relative;
  overflow: hidden;
}


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

.insights-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0;
}

.insights-badge {
  background: #0ea5e9;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.insight-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.insight-item.positive {
  border-left-color: #10b981;
}

.insight-item.negative {
  border-left-color: #ef4444;
}

.insight-item.neutral {
  border-left-color: #6b7280;
}

.insight-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.insight-item.positive .insight-icon {
  background: #10b981;
}

.insight-item.negative .insight-icon {
  background: #ef4444;
}

.insight-item.neutral .insight-icon {
  background: #6b7280;
}

.insight-content {
  flex: 1;
}

.insight-text {
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.5;
}

.insight-text strong {
  color: #0c4a6e;
  font-weight: 600;
}

/* Enhanced ROI Banner */
.roi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.roi-trend.positive {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.roi-trend.positive svg {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.roi-trend.negative {
  color: #ef4444;
}

.roi-badge-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.roi-footer-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.roi-footer-icon {
  font-size: 1rem;
}

/* Impact Cards with Trends */
.impact-cards {
  margin-bottom: 1.5rem;
}

.summary-cards.impact-cards {
  grid-template-columns: repeat(2, 1fr);
}

.impact-card {
  position: relative;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}

.impact-card:hover {
  border-top-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header-impact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Card Icon Background Colors */
.card-icon.icon-bg-blue {
  background-color: #dbeafe;
}

.card-icon.icon-bg-green {
  background-color: #dcfce7;
}

.card-icon.icon-bg-yellow {
  background-color: #fef3c7;
}

.card-icon.icon-bg-purple {
  background-color: #ede9fe;
}

.card-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-trend.positive {
  background: #d1fae5;
  color: #065f46;
}

.card-trend.negative {
  background: #fee2e2;
  color: #991b1b;
}

.card-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Additional Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card-small {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  border-left: 3px solid #e5e7eb;
  transition: all 0.3s ease;
}

.metric-card-small:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
  border-left-color: #3b82f6;
}

.metric-small-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.metric-small-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00008B;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.metric-small-change {
  font-size: 0.75rem;
  font-weight: 500;
}

.metric-small-change.positive {
  color: #10b981;
}

.metric-small-change.negative {
  color: #ef4444;
}

/* Chart Enhancements */
.chart-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
  line-height: 1.5;
}

.chart-container.full-width {
  margin-bottom: 2rem;
}

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

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

/* Value Metrics Section */
.value-metrics-section {
  margin-bottom: 3rem;
}

.value-metrics-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00008B;
  margin-bottom: 0.5rem;
}

.value-metrics-section .section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.value-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-metric-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  border-left: 4px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-metric-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #d1d5db;
  border-left-color: #3b82f6;
}

.value-metric-card:hover::before {
  opacity: 0.3;
}

.value-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.value-metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

/* Value Metric Icon Colors */
.value-metric-icon.icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.value-metric-icon.icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.value-metric-icon.icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.value-metric-icon.icon-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.value-metric-card:hover .value-metric-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-metric-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-metric-badge.positive {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.value-metric-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.value-metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00008B;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.value-metric-comparison {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.comparison-old {
  color: #9ca3af;
  text-decoration: line-through;
}

.comparison-arrow {
  color: #10b981;
  font-weight: 600;
}

.comparison-new {
  color: #10b981;
  font-weight: 600;
}

.value-metric-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Cost Breakdown Section */
.cost-breakdown-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  border: 1px solid #f3f4f6;
}

.cost-breakdown-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00008B;
  margin-bottom: 1.5rem;
}

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

.cost-comparison-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.cost-comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.cost-comparison-card.highlight {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.cost-comparison-card.highlight:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.cost-comparison-card.highlight::before {
  content: '✨';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.6;
}

.cost-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.cost-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cost-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.cost-item.total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb;
  font-weight: 700;
  background: transparent;
}

.cost-item.total.savings {
  border-top-color: #10b981;
  color: #065f46;
}

.cost-label {
  font-size: 0.875rem;
  color: #374151;
}

.cost-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.cost-item.total .cost-value {
  font-size: 1.25rem;
}

.savings-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.savings-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.savings-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: bounce 2s ease-in-out infinite;
}

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

.savings-content {
  flex: 1;
}

.savings-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.savings-percentage {
  font-size: 1rem;
  color: #047857;
  font-weight: 600;
}

.roi-stat-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.guide-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.guide-name {
  font-size: 1rem;
  font-weight: 600;
  color: #00008B;
  margin: 0 0 0.25rem 0;
}

.guide-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.guide-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #00008B;
}

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

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.heatmap-colors {
  display: flex;
  gap: 2px;
}

.heatmap-color {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.heatmap-container {
  margin-top: 1rem;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.heatmap-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.employee-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem;
  text-align: right;
}

.heatmap-data {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.heatmap-row {
  display: flex;
  gap: 0.5rem;
}

.heatmap-cell {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
}

.heatmap-cell.low {
  background-color: #fef2f2;
}

.heatmap-cell.medium {
  background-color: #fca5a5;
}

.heatmap-cell.high {
  background-color: #ef4444;
}

/* Settings Tab Styles */
.settings-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
}

.settings-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.settings-tab:hover {
  color: #374151;
}

.settings-tab.active {
  color: #00008B;
  border-bottom-color: #00008B;
}

.settings-content-area {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.settings-pane {
  display: none;
  padding: 2rem;
}

.settings-pane.active {
  display: block;
}

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

.settings-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00008B;
  margin: 0 0 1.5rem 0;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

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

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.profile-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-avatar-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-large .avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.avatar-upload-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.avatar-upload-btn:hover {
  background: #e5e7eb;
}

.plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00008B;
  margin: 0 0 0.5rem 0;
}

.plan-description {
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
}

.plan-price {
  text-align: right;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: #00008B;
}

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

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

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

.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

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

.usage-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  font-size: 1.5rem;
}

.card-details {
  display: flex;
  flex-direction: column;
}

.card-type {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.card-expiry {
  font-size: 0.75rem;
  color: #6b7280;
}

.add-payment-btn {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  padding: 1rem;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.add-payment-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.billing-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.billing-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.billing-description {
  font-size: 0.75rem;
  color: #6b7280;
}

.billing-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #00008B;
}

/* Payment History Styles */
.payment-history-container {
  margin-top: 1rem;
}

.payment-history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.payment-history-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-history-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-method {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-status.paid,
.payment-status.active {
  background: #d1fae5;
  color: #065f46;
}

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

.payment-status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.payment-status.used {
  background: #e5e7eb;
  color: #374151;
}

.payment-history-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #6b7280;
}

.payment-date {
  font-weight: 500;
  color: #374151;
}

.payment-separator {
  color: #d1d5db;
}

.payment-description {
  color: #6b7280;
}

.payment-invoice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.invoice-label {
  font-weight: 500;
}

.invoice-number {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  color: #6b7280;
  font-weight: 600;
}

.payment-history-amount {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.payment-history-amount .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00008B;
}

.payment-history-empty {
  padding: 3rem 2rem;
  text-align: center;
}

.payment-history-empty .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Payment Method Section */
.payment-method-container {
  margin-top: 1rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.payment-method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
}

.payment-method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-method-brand {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.payment-method-number {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b7280;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.payment-method-expiry {
  font-size: 0.875rem;
  color: #9ca3af;
}

.payment-method-actions {
  flex-shrink: 0;
}

.payment-method-empty {
  margin-top: 1rem;
}

.payment-method-empty .empty-state {
  text-align: center;
  padding: 2rem;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
}

.payment-method-empty .empty-icon {
  color: #9ca3af;
  margin: 0 auto 1rem;
}

.payment-method-empty .empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem;
}

.payment-method-empty .empty-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.payment-history-empty .empty-icon {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.payment-history-empty .empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.payment-history-empty .empty-description {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  max-width: 400px;
}

/* Plan Badge */
.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-badge.free-trial {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  color: #00008B;
}

/* Section Description */
.section-description {
  color: #6b7280;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* Billing Options Grid */
.billing-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.billing-option-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.billing-option-card:hover {
  border-color: #00008B;
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.1);
  transform: translateY(-2px);
}

.billing-option-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00008B;
  margin-bottom: 1rem;
}

.billing-option-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.billing-option-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.billing-option-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00008B 0%, #0000CD 100%);
  color: #ffffff;
  margin-bottom: 1rem;
}

.billing-option-link {
  display: inline-flex;
  align-items: center;
  color: #00008B;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.billing-option-link:hover {
  color: #00006B;
  text-decoration: underline;
}

/* Usage Summary Card */
.usage-summary-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: #ffffff;
}

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

.usage-summary-card .usage-item:last-child {
  border-bottom: none;
}

.usage-summary-card .usage-label {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 500;
}

.usage-summary-card .usage-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00008B;
}

.usage-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  margin-top: 1rem;
  color: #92400e;
  font-size: 0.875rem;
}

.usage-warning svg {
  flex-shrink: 0;
  color: #d97706;
}

.usage-upgrade-link {
  color: #00008B;
  font-weight: 600;
  text-decoration: underline;
}

.usage-upgrade-link:hover {
  color: #00006B;
}

/* Billing Card in Overview */
.summary-card-billing {
  position: relative;
}

.summary-card-billing .card-icon.billing {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  color: #00008B;
}

.billing-value {
  font-size: 2rem;
  font-weight: 700;
  color: #00008B;
  margin: 0.5rem 0;
}

.billing-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #92400e;
}

.billing-warning svg {
  flex-shrink: 0;
  color: #d97706;
}

.billing-upgrade-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #00008B 0%, #0000CD 100%);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.billing-upgrade-btn:hover {
  background: linear-gradient(135deg, #00006B 0%, #00008B 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 139, 0.2);
  color: #ffffff;
  text-decoration: none;
}

/* Trial Usage Card */
.trial-usage-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.trial-usage-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trial-usage-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trial-usage-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.trial-usage-count {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.trial-usage-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00008B;
  line-height: 1;
}

.trial-usage-total {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.trial-usage-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trial-usage-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.trial-usage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00008B 0%, #4169e1 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.trial-usage-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.trial-usage-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.trial-usage-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

/* Upgrade Plans Grid */
.upgrade-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.upgrade-plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.upgrade-plan-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.1);
  transform: translateY(-2px);
}

.upgrade-plan-card.featured {
  border: 2px solid #00008B;
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.15);
}

.upgrade-plan-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: #00008B;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.upgrade-plan-header {
  margin-bottom: 1.5rem;
}

.upgrade-plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00008B;
  margin: 0 0 0.5rem 0;
}

.upgrade-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.upgrade-price {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
}

.upgrade-period {
  font-size: 1rem;
  color: #6b7280;
}

.upgrade-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upgrade-plan-features li {
  font-size: 0.875rem;
  color: #374151;
  padding-left: 1.5rem;
  position: relative;
}

.upgrade-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00008B;
  font-weight: 600;
}

.upgrade-btn {
  width: 100%;
  justify-content: center;
}

/* Billing Empty State */
.billing-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-icon {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.empty-text {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.empty-subtext {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.notification-group {
  margin-bottom: 2rem;
}

.notification-group:last-child {
  margin-bottom: 0;
}

.notification-category {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
}

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

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

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

.notification-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

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

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

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

input:checked + .toggle-slider {
  background-color: #00008B;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-layout {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

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

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .nav-list {
    display: flex;
    gap: 0.5rem;
  }
  
  .nav-item {
    margin-bottom: 0;
  }
  
  .nav-link {
    white-space: nowrap;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .guides-remaining-widget {
    margin: 1rem;
    padding: 0.75rem;
  }
  
  .guides-number {
    font-size: 1.5rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 1rem;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .filter-group {
    flex-direction: column;
  }
  
  .employees-table {
    font-size: 0.75rem;
  }
  
  .employees-table th,
  .employees-table td {
    padding: 0.5rem;
  }
  
  .upgrade-plans-grid {
    grid-template-columns: 1fr;
  }
  
  .trial-usage-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trial-usage-number {
    font-size: 2rem;
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .header-right {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .export-buttons {
    flex-direction: column;
  }
  
  .settings-nav {
    flex-wrap: wrap;
  }
  
  .plan-actions {
    flex-direction: column;
  }
  
  .billing-item {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pagination-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .pagination-pages {
    order: -1;
  }
}

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

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

.modal-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.2s ease-out;
}

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

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00008B;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-form {
  padding: 1.5rem;
}

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

.modal-form .form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.required-indicator {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.modal-form .form-input,
.modal-form .form-textarea,
.modal-form .form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.modal-form .form-input:focus,
.modal-form .form-textarea:focus,
.modal-form .form-select:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

.modal-form .form-textarea {
  resize: vertical;
}

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

/* File Upload Styles */
.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.file-upload-content {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #f9fafb;
  transition: all 0.2s ease;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-input:hover + .file-upload-content,
.file-input:focus + .file-upload-content {
  border-color: #00008B;
  background-color: #f0f9ff;
}

.upload-icon {
  color: #6b7280;
  margin-bottom: 1rem;
}

.upload-text {
  margin: 0 0 0.5rem 0;
  color: #374151;
  font-size: 0.875rem;
}

.upload-primary {
  font-weight: 500;
  color: #00008B;
}

.upload-secondary {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #00008B;
  font-weight: 500;
}

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

/* User Tracking Styles */
.user-tracking-content {
  padding: 2rem;
}

.guide-selector-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.guide-selector-section .form-group {
  margin-bottom: 0;
}

.guide-selector-section .form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.guide-selector-section .form-select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-selector-section .form-select:hover {
  border-color: #00008B;
}

.guide-selector-section .form-select:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

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

.tracking-stat-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.tracking-stat-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.tracking-stat-card.done {
  border-left: 4px solid #10b981;
}

.tracking-stat-card.not-done {
  border-left: 4px solid #ef4444;
}

.tracking-stat-card.total {
  border-left: 4px solid #00008B;
}

.tracking-stat-card.percentage {
  border-left: 4px solid #8b5cf6;
}

.tracking-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tracking-stat-card.done .stat-icon {
  background-color: #d1fae5;
  color: #065f46;
}

.tracking-stat-card.not-done .stat-icon {
  background-color: #fee2e2;
  color: #991b1b;
}

.tracking-stat-card.total .stat-icon {
  background-color: #dbeafe;
  color: #1e40af;
}

.tracking-stat-card.percentage .stat-icon {
  background-color: #ede9fe;
  color: #6d28d9;
}

.tracking-stat-card .stat-content {
  flex: 1;
}

.tracking-stat-card .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.25rem;
}

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

.filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-left: auto;
  align-items: center;
}

.filter-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.status-filter-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

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

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #f9fafb;
  border-color: #00008B;
  color: #00008B;
}

.filter-btn.active {
  background-color: #00008B;
  color: #ffffff;
  border-color: #00008B;
}

.filter-btn.active:hover {
  background-color: #000066;
  border-color: #000066;
}

.tracking-table-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}

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

.table-info {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.tracking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.tracking-table thead {
  background-color: #f9fafb;
}

.tracking-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.tracking-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  white-space: nowrap;
}

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

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

.employee-column {
  min-width: 180px;
  max-width: 250px;
}

.department-column {
  min-width: 100px;
  max-width: 120px;
}

.status-column {
  min-width: 100px;
  max-width: 120px;
}

.date-column {
  min-width: 110px;
  max-width: 130px;
}

.completed-date-column {
  min-width: 100px;
  max-width: 120px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge.done {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.not-done {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.empty-icon {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.empty-description {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  max-width: 400px;
}

/* Pagination Styles for User Tracking */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #00008B;
  color: #00008B;
}

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

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-page-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-page-btn:hover {
  background-color: #f9fafb;
  border-color: #00008B;
  color: #00008B;
}

.pagination-page-btn.active {
  background-color: #00008B;
  color: #ffffff;
  border-color: #00008B;
}

.pagination-page-btn.active:hover {
  background-color: #000066;
  border-color: #000066;
}

.pagination-ellipsis {
  padding: 0 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-size label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.page-size-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-size-select:hover {
  border-color: #00008B;
}

.page-size-select:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

@media (max-width: 768px) {
  .user-tracking-content {
    padding: 1rem;
  }

  .tracking-summary {
    grid-template-columns: 1fr;
  }

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

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

  .guide-selector-section .form-select {
    max-width: 100%;
  }

  .status-filter-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    min-width: 80px;
  }

  .status-filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: stretch;
  }

  .filter-actions .btn-secondary {
    width: 100%;
  }

  /* Impact Tab Responsive Styles */
  .impact-header {
    padding-bottom: 1rem;
  }

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

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .time-period-filter {
    width: 100%;
  }

  .period-select {
    flex: 1;
  }

  .export-btn {
    width: 100%;
    justify-content: center;
  }

  .roi-banner {
    padding: 1.5rem;
  }

  .roi-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .roi-value {
    font-size: 2rem;
  }

  .roi-stats {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
  }

  .roi-stat-item {
    text-align: left;
  }

  .roi-stat-value {
    font-size: 1.25rem;
  }

  .roi-badge-value {
    font-size: 1.5rem;
  }

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

  .value-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .cost-comparison-grid {
    grid-template-columns: 1fr;
  }

  .savings-highlight {
    flex-direction: column;
    text-align: center;
  }

  .chart-container {
    padding: 1.25rem;
  }

  .section-divider {
    margin: 2rem 0;
  }

  .table-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-size {
    justify-content: center;
  }
}

/* Steps Container Styles for Guide Detail View */
.steps-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.steps-header > div {
  flex: 1;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-container {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

.step-container:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #00008B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-input {
  flex: 1;
}

.step-image-preview {
  position: relative;
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
}

.preview-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.helper-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Enhanced Step Container Styles */
.step-container {
  position: relative;
}

.step-container:hover {
  border-color: #00008B !important;
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.1) !important;
  transform: translateY(-2px);
}

.step-input:focus {
  outline: none;
  border-color: #00008B !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1) !important;
}

.step-delete-btn:hover {
  background: #fecaca !important;
  border-color: #fca5a5 !important;
  transform: scale(1.05);
}

/* Enhanced Modal Styles */
.modal-container {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  border-bottom: 2px solid #e5e7eb;
  padding: 1.5rem 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.modal-body {
  background: #f9fafb;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

/* Enhanced Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #00008B 0%, #0000CD 100%);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00006B 0%, #00008B 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.3);
}

.btn-secondary {
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.add-step-button {
  transition: all 0.2s ease;
}

.add-step-button:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Assign Employees Modal Styles */
.employee-item {
  border-left: 3px solid transparent;
}

.employee-item:hover {
  background: #f9fafb !important;
  border-left-color: #00008B !important;
}

.employee-item:has(.employee-checkbox:checked) {
  background: #eff6ff !important;
  border-left-color: #00008B !important;
}

.employee-checkbox:checked + .employee-avatar {
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.2) !important;
}

.employee-select-container::-webkit-scrollbar {
  width: 8px;
}

.employee-select-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.employee-select-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.employee-select-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#employeeSearchInput:focus {
  border-color: #00008B !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1) !important;
}

#selectionSummary {
  animation: slideDown 0.2s ease-out;
}

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