/* 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: auto;
}

.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: 2rem;
  font-weight: bold;
  color: #00008B;
  margin: 0 0 0.5rem 0;
}

.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);
}

.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(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-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);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.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: 2rem;
  font-weight: bold;
  color: #00008B;
  margin: 0 0 0.25rem 0;
}

.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.25rem;
  font-weight: 600;
  color: #00008B;
  margin: 0;
}

.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;
}

.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: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

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

.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: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-container {
  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);
}

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

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

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

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

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

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

.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: 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);
}

.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;
}

/* 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-color: #e0f2fe;
  color: #0369a1;
}

/* 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;
  }
  
  .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;
}

.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;
}

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

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

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

.employee-column {
  min-width: 200px;
}

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

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

.date-column,
.completed-date-column {
  min-width: 150px;
}

.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%;
  }

  .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);
  }
}
