/* Family Focus Plan 2026 - Custom Styles */

/* Global Styles */
:root {
  --primary-color: #0d6efd;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Navbar Enhancements */
.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

/* Card Enhancements */
.card {
  border-radius: 0.5rem;
  border: none;
  margin-bottom: 1.5rem;
}

.card-header {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

/* Progress Bars */
.progress {
  border-radius: 0.5rem;
}

.progress-bar {
  border-radius: 0.5rem;
  font-weight: 600;
}

/* Badges */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 500;
}

/* Buttons */
.btn {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

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

.btn-xs {
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Touch-friendly buttons for mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .btn-group .btn {
    min-width: auto;
  }
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table-responsive {
  border-radius: 0.5rem;
}

.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  .card-body {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

/* DigiLocker Widget Styling */
.card.border-primary {
  border-width: 2px !important;
}

/* Status Badges */
.badge.bg-success {
  background-color: var(--success-color) !important;
}

.badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: #000;
}

.badge.bg-danger {
  background-color: var(--danger-color) !important;
}

.badge.bg-info {
  background-color: var(--info-color) !important;
  color: #000;
}

/* List Group Enhancements */
.list-group-item {
  border-left: none;
  border-right: none;
}

.list-group-item:first-child {
  border-top: none;
}

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

.list-group-flush .list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Login Page */
.min-vh-100 {
  min-height: 100vh;
}

/* Alert Styling */
.alert {
  border-radius: 0.5rem;
  border: none;
}

.alert i {
  margin-right: 0.5rem;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Responsive Font Sizes */
@media (min-width: 576px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .btn-group,
  form {
    display: none !important;
  }

  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Sticky Footer for Mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }

  .mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem;
    z-index: 1000;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Area Cards */
.card.h-100 {
  transition: transform 0.2s ease-in-out;
}

.card.h-100:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Deadline Warning */
.text-danger {
  font-weight: 600;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
