/* Modern Attendance Tracker Styles */
/* Reset and base styles */
:root {
  /* Color palette */
  --primary-color: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #6ee7b7 0%, #3b82f6 100%);
  --gradient-danger: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
}

/* Global styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding-bottom: 80px;
  min-height: 100vh;
  line-height: 1.6;
}

/* Smooth animations */
* {
  transition: all var(--transition-fast);
}

/* Page transitions */
main {
  opacity: 1;
  animation: fadeInUp 0.6s ease-out;
}

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

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Enhanced Buttons */
.btn {
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-primary);
  filter: brightness(1.1);
}

.btn-success {
  background: var(--gradient-success);
  border: none;
}

.btn-success:hover {
  background: var(--gradient-success);
  filter: brightness(1.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-lg);
}

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

/* Delete button specific styling */
.delete-user {
  position: relative;
}

.delete-user:hover {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
  transform: translateY(-1px);
}

.delete-user:hover i {
  animation: shake 0.5s;
}

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

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Forms */
.form-control, .form-select {
  border-radius: var(--border-radius-md);
  border: 2px solid #e5e7eb;
  padding: 0.875rem 1rem;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.input-group-text {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

/* Status indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-xl);
  font-weight: 500;
  font-size: 0.875rem;
}

.status-working {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.status-checked-out {
  background: rgba(100, 116, 139, 0.1);
  color: var(--secondary-color);
  border: 2px solid rgba(100, 116, 139, 0.2);
}

.status-not-checked-in {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 2px solid rgba(239, 68, 68, 0.2);
}

/* Enhanced Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  min-width: 60px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.bottom-nav a i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.bottom-nav a span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Enhanced Header */
header.bg-dark {
  background: var(--gradient-primary) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

/* Attendance Action Buttons */
.attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.attendance-btn {
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.attendance-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all var(--transition-slow);
}

.attendance-btn:hover:before {
  left: 100%;
}

.btn-check-in {
  background: var(--gradient-success);
  color: white;
}

.btn-check-out {
  background: var(--gradient-danger);
  color: white;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

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

/* Enhanced Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

/* Enhanced Tables */
.table {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th {
  background: rgba(59, 130, 246, 0.1);
  color: var(--dark-color);
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table td {
  border: none;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

/* Time display */
#current-time, #modal-current-time {
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .attendance-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .btn {
    padding: 0.875rem 1.25rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .fab {
    bottom: 80px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Dark theme support */
[data-bs-theme="dark"] {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-bs-theme="dark"] .card {
  background: rgba(30, 41, 59, 0.95);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .bottom-nav {
  background: rgba(30, 41, 59, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .table {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .table th {
  background: rgba(59, 130, 246, 0.2);
  color: #e2e8f0;
}

/* Calendar styles */

.bottom-nav a i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.bottom-nav a.active {
  color: var(--bs-primary);
  font-weight: bold;
}

/* Login and Register Forms */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

/* Card styles */
.card {
  margin-bottom: 20px;
  border-radius: 8px;
}

.attendance-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.attendance-card:hover:not(.disabled) {
  transform: translateY(-5px);
}

.attendance-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal attendance card styles */
.modal .attendance-card {
  border: 2px solid transparent;
}

.modal .attendance-card.bg-primary {
  border-color: var(--bs-primary);
}

/* Calendar styling */
/* Theme variables */
[data-bs-theme="light"] {
  --calendar-bg: rgba(0, 0, 0, 0.02);
  --calendar-border: rgba(0, 0, 0, 0.1);
  --calendar-text: #333;
  --header-bg: #f8f9fa;
  --header-text: #212529;
}

[data-bs-theme="dark"] {
  --calendar-bg: rgba(255, 255, 255, 0.05);
  --calendar-border: rgba(255, 255, 255, 0.1);
  --calendar-text: #eee;
  --header-bg: #212529;
  --header-text: #fff;
}

/* Header styles */
header.bg-dark {
  background-color: var(--header-bg) !important;
}

header .text-light {
  color: var(--header-text) !important;
}

header .btn-outline-light {
  border-color: var(--header-text);
  color: var(--header-text);
}

header .btn-outline-light:hover {
  background-color: var(--header-text);
  color: var(--header-bg);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 20px;
  color: var(--calendar-text);
}

.calendar-day {
  background-color: var(--calendar-bg);
  border: 1px solid var(--calendar-border);
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.calendar-day {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-size: 0.9rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  padding: 5px;
}

[data-bs-theme="light"] .calendar-day {
  background-color: rgba(0, 0, 0, 0.02);
  color: #333;
}

[data-bs-theme="dark"] .calendar-day {
  background-color: rgba(255, 255, 255, 0.05);
  color: #eee;
}

.calendar-day.empty {
  border: none;
  background-color: transparent;
  cursor: default;
}

.calendar-day.has-record {
  border-color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.1);
}

.calendar-day.today {
  border: 2px solid var(--bs-danger);
}

.day-number {
  font-weight: bold;
  margin-bottom: 3px;
}

.activity-indicators {
  display: flex;
  gap: 3px;
  margin-top: auto;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.indicator.check-in {
  background-color: var(--bs-success);
}

.indicator.check-out {
  background-color: var(--bs-danger);
}

.indicator.break {
  background-color: var(--bs-warning);
}

/* Legend dots */
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-dot.check-in {
  background-color: var(--bs-success);
}

.legend-dot.check-out {
  background-color: var(--bs-danger);
}

.legend-dot.break {
  background-color: var(--bs-warning);
}

.legend-dot.today-dot {
  border: 2px solid var(--bs-danger);
  background-color: transparent;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.calendar-header span {
  text-align: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Make sure content is visible above the navbar */
.main-content {
  padding-bottom: 80px;
}

/* Utility classes */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats cards */
.stat-card {
  border-left: 0px solid var(--bs-primary);
}

/* Modal specific styles */
.modal-fullscreen-md-down {
  max-height: 100vh;
}

#location-status {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.modal-current-time {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Additional UI Components */

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
}

/* Avatar styles */
.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Pulse dot animation */
.pulse-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  animation: pulse-ring 2s infinite;
}

.pulse-dot:before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid;
  border-color: inherit;
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Status icon */
.status-icon {
  position: relative;
}

/* Enhanced attendance actions */
.attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.attendance-actions .col-span-2 {
  grid-column: 1 / -1;
}

/* Timeline styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-item:last-child:before {
  background: linear-gradient(to bottom, var(--primary-color) 50%, transparent);
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 32px;
  height: 32px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.timeline-marker i {
  font-size: 0.875rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

/* Enhanced notification badge */
#notification-badge {
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  margin: 0 0.25rem;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

.dropdown-header {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.75rem 1rem 0.5rem;
}

/* Work duration display */
#work-duration {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item:before {
    left: -1.5rem;
  }
  
  .timeline-marker {
    left: -2rem;
    width: 28px;
    height: 28px;
  }
  
  .timeline-content {
    padding: 0.875rem 1rem;
  }
  
  .attendance-actions {
    gap: 1rem;
  }
  
  .attendance-btn {
    padding: 1.25rem;
    font-size: 1rem;
  }
  
  .pulse-dot {
    width: 16px;
    height: 16px;
  }
}

/* Dark theme enhancements */
[data-bs-theme="dark"] .timeline-content {
  background: rgba(30, 41, 59, 0.8);
  border-left-color: var(--primary-color);
}

[data-bs-theme="dark"] .timeline-marker {
  background: var(--dark-color);
  border-color: var(--primary-color);
}

[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(30, 41, 59, 0.95);
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Performance optimizations */
* {
  will-change: auto;
}

.btn:hover,
.card:hover,
.attendance-btn:hover {
  will-change: transform, box-shadow;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .pulse-dot,
  .pulse-dot:before {
    animation: none;
  }
}

/* Focus states */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Enhanced Authentication Forms */
.auth-form {
  position: relative;
  overflow: hidden;
}

.auth-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1;
}

.auth-icon {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s infinite;
}

/* Enhanced input groups */
.input-group-text {
  min-width: 50px;
  justify-content: center;
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

/* Password toggle button */
#toggle-password {
  border-left: none;
  background: transparent;
  color: var(--secondary-color);
}

#toggle-password:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Features showcase */
.border-top {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Loading states for auth forms */
.auth-form .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Enhanced checkbox */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Version info styling */
.text-muted small {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Responsive auth forms */
@media (max-width: 768px) {
  .auth-form .card-body {
    padding: 2rem !important;
  }
  
  .auth-icon i {
    font-size: 3rem !important;
  }
  
  .row.min-vh-100 {
    min-height: auto !important;
    padding: 2rem 0;
  }
}

/* Dark theme auth forms */
[data-bs-theme="dark"] .auth-form::before {
  background: var(--gradient-primary);
}

[data-bs-theme="dark"] .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ripple effect for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced form validation states */
.form-control.is-valid {
  border-color: var(--success-color);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

.valid-feedback,
.invalid-feedback {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Enhanced animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  animation: slideInUp 0.6s ease-out;
}

/* Enhanced focus states */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Custom form styling */
.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .form-label {
  color: var(--light-color);
}

/* Enhanced spacing */
.auth-form .mb-4:last-of-type {
  margin-bottom: 1.5rem !important;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }
  
  .form-control {
    min-height: 48px;
  }
  
  .input-group-text {
    min-width: 48px;
  }
}

/* Enhanced Admin Dashboard */

/* Statistics Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card-body {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Color-specific stat icon backgrounds */
.bg-primary-light {
  background: rgba(59, 130, 246, 0.1);
}

.bg-success-light {
  background: rgba(16, 185, 129, 0.1);
}

.bg-warning-light {
  background: rgba(245, 158, 11, 0.1);
}

.bg-info-light {
  background: rgba(59, 130, 246, 0.1);
}

.bg-danger-light {
  background: rgba(239, 68, 68, 0.1);
}

/* Avatar circles */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Enhanced tables */
.table thead th {
  border-bottom: 2px solid rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.05);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-color);
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr {
  transition: all var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.02);
  transform: translateX(2px);
}

/* Enhanced badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

/* Button groups */
.btn-group-sm .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-group .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-group .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}

/* Enhanced card headers with gradients */
.card-header.bg-gradient {
  background: var(--gradient-primary) !important;
  border: none;
  color: white;
}

/* User management section */
.user-list-item {
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-md);
  margin-bottom: 0.5rem;
}

.user-list-item:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

/* Enhanced dropdowns */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Quick action buttons */
.quick-action-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-action-btn:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Profile Page - Mobile First Styles */
.profile-header {
  padding: 1.5rem 0;
  background: var(--gradient-primary);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: var(--shadow-md);
}

.avatar-container {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.avatar-container i {
  font-size: 3rem;
}

/* Stats Cards Horizontal Scroll */
.stats-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.stats-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.stats-container {
  display: flex;
  min-width: fit-content;
  padding: 0 0.25rem;
}

.stat-card {
  min-width: 100px;
  flex: 0 0 auto;
  margin-right: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  background-color: white;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-card:last-child {
  margin-right: 0;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-top: 0.25rem;
}

/* Tab Navigation */
#profileTabs .nav-link {
  border-radius: var(--border-radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

#profileTabs .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Tab Content */
#profileTabsContent .card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
}

/* Responsive improvements */
@media (min-width: 768px) {
  .stats-container {
    justify-content: center;
  }
  
  .stat-card {
    min-width: 150px;
    padding: 1.25rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  #profileTabsContent .card {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Minimalistic Dashboard Styles */

/* Status Rings */
.status-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.2;
}

.status-ring.working {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.status-ring.done {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
}

.status-ring.idle {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
    color: var(--bs-secondary);
}

/* Icon Squares */
.icon-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Background Utilities */
.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
}

/* Card Refinements */
.card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* Typography */
.fw-semibold {
    font-weight: 600 !important;
}

/* Button Refinements */
.btn-lg {
    font-weight: 600;
    letter-spacing: 0.5px;
}
