/* ============================================================
   BYB Modern Design System CSS v2.0
   ============================================================
   Drop this file in /static/css/modern-design.css
   Add to base.html: <link href="{{ url_for('static', filename='css/modern-design.css') }}" rel="stylesheet"/>
   
   v2.0 - Added: My Reports redesign, Progress Rings, Athlete Badge,
          Pagination, Filter Chips, Improved Navbar with Dark Mode Toggle
   ============================================================ */

/* ============================================================
   0. BYB COLOR VARIABLES (Turquoise Theme)
   ============================================================ */

:root {
  /* Primary Turquoise Colors */
  --byb-primary: #089ba6;
  --byb-primary-light: #5be7f1;
  --byb-primary-dark: #067a82;
  
  /* Text Colors */
  --byb-dark: #0F172A;
  --byb-medium: #475569;
  --byb-light-text: #64748B;
  
  /* Background Colors */
  --byb-light: #F1F5F9;
  --byb-grey-block: #F8FAFC;
  --byb-white: #FFFFFF;
  
  /* Status Colors */
  --byb-success: #10B981;
  --byb-warning: #F59E0B;
  --byb-danger: #EF4444;
  --byb-info: #3B82F6;
  
  /* Borders */
  --byb-border: #E2E8F0;
  --byb-border-light: #F1F5F9;
  
  /* Shadows */
  --byb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --byb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --byb-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
  --byb-light: #1E293B;
  --byb-grey-block: #334155;
  --byb-white: #1E293B;
  --byb-dark: #F1F5F9;
  --byb-medium: #94A3B8;
  --byb-light-text: #94A3B8;
  --byb-border: #334155;
  --byb-border-light: #2D3748;
}

/* ============================================================
   1. TYPOGRAPHY - Inter Font System
   ============================================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
h5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
h6 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }

/* ============================================================
   2. CARDS - Modern Card System
   ============================================================ */

.card {
  background: var(--color-card) !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  transform: translateY(-2px);
}

.card-body {
  padding: 24px !important;
}

.card-header {
  padding: 20px 24px !important;
  background: transparent !important;
  border-bottom: 1px solid #E2E8F0 !important;
  font-weight: 600;
  font-size: 18px;
}

.card-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  margin-bottom: 12px !important;
}

/* ============================================================
   3. BUTTONS - Modern Button System
   ============================================================ */

.btn {
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.btn-lg {
  padding: 16px 32px !important;
  font-size: 16px !important;
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary) !important;
  color: white !important;
  border: none !important;
}

.btn-primary:hover {
  background: var(--color-secondary) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3) !important;
  transform: translateY(-2px);
  color: white !important;
}

/* Success Button */
.btn-success {
  background: var(--color-success) !important;
  color: white !important;
  border: none !important;
}

.btn-success:hover {
  background: var(--color-success-dark) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
  transform: translateY(-2px);
  color: white !important;
}

/* Secondary/Outline Button */
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
  background: transparent !important;
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  padding: 10px 22px !important;
}

.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: #EFF6FF !important;
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
  transform: translateY(-1px);
}

/* ============================================================
   4. BADGES - Modern Badge System
   ============================================================ */

.badge {
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-block;
}

/* Primary Badge */
.badge-primary {
  background: #DBEAFE !important;
  color: #1E40AF !important;
}

/* Success Badge */
.badge-success {
  background: #D1FAE5 !important;
  color: #065F46 !important;
}

/* Warning Badge */
.badge-warning {
  background: #FEF3C7 !important;
  color: #92400E !important;
}

/* Info Badge */
.badge-info {
  background: #E0F2FE !important;
  color: #075985 !important;
}

/* Bootstrap 5 bg-* badge overrides (ensure readable text) */
.badge.bg-success {
  color: #fff !important;
}
.badge.bg-danger {
  color: #fff !important;
}
.badge.bg-warning {
  color: #000 !important;
}
.badge.bg-info {
  color: #fff !important;
}
.badge.bg-primary {
  color: #fff !important;
}
.badge.bg-secondary {
  color: #fff !important;
}
.badge.bg-dark {
  color: #fff !important;
}

/* Badge with gradient (for report types) */
.badge-gradient {
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
}

/* ============================================================
   5. TABLES - Modern Table System
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
}

.table thead {
  background: #F8FAFC !important;
}

.table th {
  text-align: left;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #64748B !important;
  border-bottom: 2px solid #E2E8F0 !important;
}

.table td {
  padding: 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  color: #475569;
  font-size: 14px;
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: #F8FAFC !important;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

/* ============================================================
   6. FORMS - Modern Form System
   ============================================================ */

.form-control,
.form-select {
  padding: 12px 16px !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  background: var(--color-card) !important;
  color: var(--color-text) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
  outline: none !important;
}

.form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.input-group-text {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B;
}

/* ============================================================
   7. ALERTS - Modern Alert System
   ============================================================ */

.alert {
  border-radius: 8px !important;
  border: none !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
}

.alert-success {
  background: #D1FAE5 !important;
  color: #065F46 !important;
  border-left: 4px solid #10B981 !important;
}

.alert-warning {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-left: 4px solid #F59E0B !important;
}

.alert-danger {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  border-left: 4px solid #EF4444 !important;
}

.alert-info {
  background: #E0F2FE !important;
  color: #075985 !important;
  border-left: 4px solid #0EA5E9 !important;
}

/* ============================================================
   8. CONTAINERS & SPACING - Modern Layout
   ============================================================ */

.container {
  max-width: 1400px !important;
  padding: 48px 24px !important;
}

/* Responsive spacing */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px !important;
  }
}

/* Modern spacing utilities */
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 32px !important; }

/* ============================================================
   9. REPORT CARDS - Special Styling for Make Report Page
   ============================================================ */

.report-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.report-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.report-header {
  padding: 24px;
  color: white;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  text-align: center;
}

.report-body {
  padding: 24px;
  flex-grow: 1;
}

.report-description {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.report-features {
  margin: 20px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 14px;
  margin-bottom: 8px;
}

.feature-item::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
}

.report-footer {
  padding: 20px 24px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credit-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748B;
  font-size: 13px;
}

.badge-available {
  background: #D1FAE5;
  color: #065F46;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   10. WELCOME/INTRO CARDS - Dashboard Style
   ============================================================ */

.welcome-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.welcome-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.welcome-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.welcome-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.welcome-card ul {
  color: #475569;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 24px;
}

/* ============================================================
   11. DASHBOARD GRID - Responsive Layout
   ============================================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   12. NAVBAR - Modern Navbar with Icons
   ============================================================ */

.navbar {
  background: white !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 16px 24px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.nav-link {
  color: #64748B !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.2s !important;
}

.nav-link:hover {
  color: var(--byb-primary) !important;
}

.nav-link.active {
  color: var(--color-text) !important;
  font-weight: 600 !important;
}

/* Modern Navbar Styles */
.navbar-modern {
  background: var(--byb-white);
  box-shadow: var(--byb-shadow-sm);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar-brand-modern img {
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-brand-modern:hover img {
  transform: scale(1.05);
}

.nav-modern {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-modern .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--byb-medium);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-modern .nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-modern .nav-link:hover {
  color: var(--byb-primary);
  background: rgba(8, 155, 166, 0.08);
}

.nav-modern .nav-link:hover i {
  transform: scale(1.15);
}

.nav-modern .nav-link.active {
  color: white !important;
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(8, 155, 166, 0.3);
}

.nav-modern .nav-link.active i {
  transform: scale(1.1);
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark Mode Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--byb-light);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.theme-toggle:hover {
  background: var(--byb-border);
}

.theme-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--byb-medium);
  min-width: 35px;
}

.theme-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: #CBD5E1;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.theme-toggle-switch::before {
  content: '☀️';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.theme-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle.active .theme-toggle-switch {
  background: var(--byb-primary);
}

.theme-toggle.active .theme-toggle-switch::before {
  content: '🌙';
  left: auto;
  right: 5px;
}

.theme-toggle.active .theme-toggle-switch::after {
  left: 25px;
}

.theme-toggle-icon {
  font-size: 1rem;
  color: var(--byb-medium);
  transition: all 0.3s ease;
}

.theme-toggle.active .theme-toggle-icon {
  color: var(--byb-primary);
}

/* Language Switch */
.lang-switch {
  display: flex;
  background: var(--byb-light);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.5rem 0.75rem;
  color: var(--byb-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.lang-switch a:hover {
  background: rgba(8, 155, 166, 0.1);
  color: var(--byb-primary);
}

.lang-switch a.active {
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  color: white;
}

/* User Avatar */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(8, 155, 166, 0.3);
}

/* ============================================================
   13. UTILITIES - Modern Helper Classes
   ============================================================ */

.text-muted {
  color: #64748B !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-light {
  background: #F8FAFC !important;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.shadow {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
  box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.rounded {
  border-radius: 8px !important;
}

.rounded-lg {
  border-radius: 12px !important;
}

/* ============================================================
   14. DARK MODE - Respect Theme Toggle
   ============================================================ */

[data-bs-theme="dark"] body {
  background: var(--color-background) !important;
  color: var(--color-text) !important;
}

[data-bs-theme="dark"] .card {
  background: var(--color-card) !important;
  border-color: #2D3748 !important;
}

[data-bs-theme="dark"] .table th {
  background: #1e1e1e !important;
  color: #94A3B8 !important;
}

[data-bs-theme="dark"] .table td {
  color: #CBD5E1 !important;
  border-color: #2D3748 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: var(--color-card) !important;
  border-color: #2D3748 !important;
  color: var(--color-text) !important;
}

[data-bs-theme="dark"] .navbar {
  background: var(--navbar-bg) !important;
  border-color: #2D3748 !important;
}

/* ============================================================
   15. ANIMATIONS - Subtle Micro-interactions
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   16. MY REPORTS - Page Header
   ============================================================ */

.my-reports-header {
  background: var(--byb-white);
  padding: 2rem 0;
  margin-bottom: 2rem;
  transition: background 0.3s ease;
}

.my-reports-header .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--byb-dark);
}

.my-reports-header .page-subtitle {
  color: var(--byb-medium);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--byb-medium);
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid var(--byb-border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--byb-white);
  color: var(--byb-dark);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--byb-primary);
  box-shadow: 0 0 0 3px rgba(8, 155, 166, 0.15);
}

.search-input::placeholder {
  color: var(--byb-medium);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--byb-white);
  border: 2px solid var(--byb-border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--byb-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip:hover {
  border-color: var(--byb-primary);
  color: var(--byb-primary);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  border-color: transparent;
  color: white;
}

.filter-chip .badge-count {
  background: rgba(255,255,255,0.3);
  padding: 0.125rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ============================================================
   17. MY REPORTS - Report List Items
   ============================================================ */

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-item {
  background: var(--byb-white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--byb-shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.report-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--byb-primary-light), var(--byb-primary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.report-item:hover {
  transform: translateX(4px);
  box-shadow: var(--byb-shadow-md);
}

.report-item:hover::before {
  transform: scaleY(1);
}

/* Row States */
.report-item.status-processing {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
}

.report-item.status-processing::before {
  background: linear-gradient(180deg, var(--byb-warning), #FBBF24);
  transform: scaleY(1);
  animation: pulse-bar 2s infinite;
}

.report-item.status-pending {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(96, 165, 250, 0.03) 100%);
}

.report-item.status-pending::before {
  background: linear-gradient(180deg, #60A5FA, var(--byb-info));
  transform: scaleY(1);
}

/* ============================================================
   18. MY REPORTS - Progress Ring
   ============================================================ */

.progress-ring-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 4;
}

.progress-ring .bg {
  stroke: var(--byb-border);
}

.progress-ring .progress {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* Status: Pending */
.progress-ring.status-pending .progress {
  stroke: var(--byb-info);
  stroke-dashoffset: 150.79; /* Empty */
}

/* Status: Processing */
.progress-ring.status-processing .progress {
  stroke: var(--byb-warning);
  stroke-dashoffset: 75.4; /* Half */
  animation: progress-pulse 2s infinite;
}

/* Status: Ready */
.progress-ring.status-ready .progress {
  stroke: var(--byb-success);
  stroke-dashoffset: 0; /* Full */
}

.progress-ring-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.125rem;
}

.progress-ring-icon.status-pending {
  color: var(--byb-info);
}

.progress-ring-icon.status-processing {
  color: var(--byb-warning);
  animation: spin 1.5s linear infinite;
}

.progress-ring-icon.status-ready {
  color: var(--byb-success);
}

/* ============================================================
   19. MY REPORTS - Report Info Section
   ============================================================ */

.report-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-info .report-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

/* Report Type Badge - Colors from database via inline style */
.report-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--rt-start, #5be7f1) 0%, var(--rt-end, #089ba6) 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.report-date {
  font-size: 0.875rem;
  color: var(--byb-medium);
}

.report-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--byb-dark);
  margin: 0;
}

.report-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--byb-medium);
  flex-wrap: wrap;
}

.report-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.report-meta i {
  color: var(--byb-primary);
}

/* Duration inline (smaller, subtle) */
.duration-inline {
  color: var(--byb-medium);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Profile badge (after analysis) */
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-badge i {
  color: var(--byb-warning);
}

/* ============================================================
   20. MY REPORTS - Athlete Badge (Grey Block Style)
   ============================================================ */

.athlete-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--byb-grey-block);
  border: 1px solid var(--byb-border);
  border-radius: 12px;
  min-width: 200px;
  transition: all 0.2s ease;
}

.athlete-badge:hover {
  border-color: var(--byb-primary);
}

.athlete-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--byb-primary-light), var(--byb-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.athlete-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.athlete-name {
  font-weight: 700;
  color: var(--byb-dark);
  font-size: 1rem;
}

.athlete-crew {
  font-size: 0.875rem;
  color: var(--byb-medium);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.athlete-crew i {
  font-size: 0.75rem;
  color: var(--byb-primary);
}

/* ============================================================
   21. MY REPORTS - Action Buttons
   ============================================================ */

.report-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
}

/* Status: Start Analysis (blue) - PENDING */
.btn-action.btn-start {
  background: linear-gradient(135deg, #60A5FA, var(--byb-info));
  color: white;
}

.btn-action.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
}

/* Status: Analyzing (orange, disabled) - PROCESSING */
.btn-action.btn-processing {
  background: linear-gradient(135deg, var(--byb-warning), #FBBF24);
  color: white;
  pointer-events: none;
  opacity: 0.9;
}

/* Status: View Analysis (turquoise) - READY */
.btn-action.btn-view {
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  color: white;
}

.btn-action.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 155, 166, 0.3);
  color: white;
}

/* Delete Button */
.btn-action.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
}

.btn-action.btn-icon.btn-danger {
  background: #FEE2E2;
  color: var(--byb-danger);
}

.btn-action.btn-icon.btn-danger:hover {
  background: var(--byb-danger);
  color: white;
}

/* ============================================================
   22. MY REPORTS - Section Header
   ============================================================ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--byb-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title .count {
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.sort-dropdown {
  padding: 0.5rem 1rem;
  border: 2px solid var(--byb-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--byb-medium);
  cursor: pointer;
  background: var(--byb-white);
}

.sort-dropdown:focus {
  outline: none;
  border-color: var(--byb-primary);
}

/* ============================================================
   23. MY REPORTS - Pagination
   ============================================================ */

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--byb-white);
  border-radius: 12px;
  box-shadow: var(--byb-shadow-sm);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--byb-medium);
}

.pagination-info strong {
  color: var(--byb-dark);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--byb-border);
  border-radius: 10px;
  background: var(--byb-white);
  color: var(--byb-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--byb-primary);
  color: var(--byb-primary);
  background: rgba(8, 155, 166, 0.05);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--byb-primary-light) 0%, var(--byb-primary) 100%);
  border-color: transparent;
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-dots {
  padding: 0 0.5rem;
  color: var(--byb-medium);
}

/* Per Page Selector */
.per-page-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.per-page-selector label {
  font-size: 0.875rem;
  color: var(--byb-medium);
}

.per-page-selector select {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--byb-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--byb-dark);
  cursor: pointer;
  background: var(--byb-white);
}

/* ============================================================
   24. MY REPORTS - Empty State
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--byb-white);
  border-radius: 16px;
  box-shadow: var(--byb-shadow-sm);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--byb-primary);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--byb-dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--byb-medium);
  margin-bottom: 1.5rem;
}

/* ============================================================
   25. MY REPORTS - Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .report-item {
    grid-template-columns: auto 1fr auto;
  }
  .athlete-badge { 
    display: none; 
  }
  .report-meta .athlete-inline {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .nav-modern { 
    display: none !important; 
  }
  
  .report-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .progress-ring-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
  
  .athlete-badge {
    display: flex;
    margin-top: 0.5rem;
  }
  
  .report-actions {
    justify-content: stretch;
  }
  
  .report-actions .btn-action:not(.btn-icon) {
    flex: 1;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .navbar-actions {
    gap: 0.5rem;
  }
  
  .theme-toggle-label {
    display: none;
  }
}

/* Hidden by default, shown on mobile */
.athlete-inline {
  display: none !important;
}

@media (max-width: 1100px) {
  .athlete-inline {
    display: flex !important;
  }
}

/* ============================================================
   26. GENERAL RESPONSIVE - Mobile Optimization
   ============================================================ */

@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  
  .card-body {
    padding: 20px !important;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .welcome-card {
    padding: 24px;
  }
  
  .report-card {
    margin-bottom: 16px;
  }
}

/* ============================================================
   END OF MODERN DESIGN SYSTEM v2.0
   ============================================================ */
