html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

/* Custom Styles for PrivateTutor Tracker */

/* Card Hover Effect */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dashboard Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Table Improvements */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  cursor: pointer;
}

/* Badge Styling */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Button Group Improvements */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Calendar View Styling */
.card .card-header h6 {
  font-weight: 600;
}

/* Alert Improvements */
.alert {
  border-radius: 8px;
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #28a745;
}

.alert-warning {
  border-left-color: #ffc107;
}

.alert-danger {
  border-left-color: #dc3545;
}

.alert-info {
  border-left-color: #17a2b8;
}

/* Form Improvements */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navbar Improvements */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.3rem;
}

/* Footer */
.footer {
  padding: 1rem 0;
  margin-top: 2rem;
  background-color: white;
  border-top: 1px solid #dee2e6;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Loading Animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* Custom Utility Classes */
.text-decoration-none:hover {
  text-decoration: underline !important;
}

.fw-bold {
  font-weight: 600 !important;
}

/* Calendar Day Cards */
.card.border-primary {
  border-width: 2px;
}

.card.border-success {
  border-width: 2px;
}

.card.border-danger {
  border-width: 2px;
}

/* Professional Dashboard Styles */
.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  border-radius: 12px;
  color: white;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.stat-card {
  transition: all 0.3s ease;
  border-radius: 12px !important;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Light Background Colors for Icons */
.bg-primary-light {
  background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-light {
  background-color: rgba(25, 135, 84, 0.1);
}

.bg-info-light {
  background-color: rgba(13, 202, 240, 0.1);
}

.bg-warning-light {
  background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Text Colors for Light Backgrounds */
.text-primary { color: #0d6efd !important; }
.text-success { color: #198754 !important; }
.text-info { color: #0dcaf0 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

/* Icon Circles for Quick Actions */
.icon-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quick Action Buttons */
.quick-action-btn {
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
}

.quick-action-btn:hover .icon-circle {
  transform: scale(1.1);
}

.quick-actions-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Enhanced Table Styling */
.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Badge Pills with Light Backgrounds */
.badge.rounded-pill {
  padding: 0.5em 1em;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Card Header Enhancements */
.card-header {
  border-bottom: 2px solid #f0f0f0;
}

.card-header.bg-white {
  background-color: white !important;
}

/* Empty State Styling */
.empty-state {
  padding: 2rem;
}

.empty-state svg {
  opacity: 0.5;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Box Shadow Utilities */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation for Cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Modern List Group */
.list-group-item {
  border: none !important;
  transition: all 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  padding-left: 1rem !important;
}

/* Improved Button Styles */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}