/* Minimal & Professional Design */
:root {
    --bs-font-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}


.disabled-row {
    background-color: #fff3cd !important;
}
.disabled-row td {
    color: #856404;
}

@media print {
    nav, .btn, #filterCard, .breadcrumb, footer, .modal {
        display: none !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .table {
        font-size: 10px;
    }
}

/* Dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar .dropdown-menu {
    margin-top: 0;
}


#chartAthletesBySection,
#chartPie,
#chartWeek,
#chartMonths {
    min-height: 300px;
    max-height: 350px;
}


/* Print Styles */
@media print {

    .page-break {
        page-break-after: always;
        page-break-inside: avoid;
        margin-bottom: 0 !important;
    }
    .page-break:last-child {
        page-break-after: avoid;
    }
    

    .text-danger,
    .text-success {
        color: #000 !important;
    }    
    .no-print,
    nav.navbar,
    .breadcrumb,
    footer.footer,
    .btn,
    button,
    .modal,
    .modal-backdrop,
    .pagination,
    #paginationInfo {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .card-body {
        padding: 0 !important;
    }
    
    .table {
        font-size: 10px !important;
        width: 100% !important;
    }
    
    .table th,
    .table td {
        padding: 4px 6px !important;
    }
    
    h4, h6 {
        font-size: 14px !important;
        margin: 5px 0 !important;
    }
    
    #resultsCard {
        display: block !important;
        page-break-before: avoid;
    }
    
    #statementPeriod {
        font-size: 10px !important;
    }
    
    #statementTable th:last-child,
    #statementTable td:last-child {
        display: none !important;
    }
    
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
}
body {
    background-color: #f8f9fa;
    font-size: 0.875rem;
    color: #212529;
}

/* Typography */
.fw-300 {
    font-weight: 300;
}

.fw-500 {
    font-weight: 500;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Cards */
.card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.5rem;
}

.card-body {
    padding: 0.75rem;
}

/* Table */
.table {
    font-size: 0.8125rem;
}

.table th {
    border-top: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

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

.table > :not(:first-child) {
    border-top: 1px solid #dee2e6;
}

/* Buttons */
.btn {
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

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

.btn-outline-primary {
    border-color: #dee2e6;
    color: #495057;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.btn-light:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Action buttons in table */
.btn-action {
    padding: 0.2rem 0.4rem;
    font-size: 0.875rem;
    line-height: 1;
    border: none;
    background: none;
    color: #6c757d;
    transition: color 0.15s;
}

.btn-action:hover {
    color: #0d6efd;
}

.btn-action.text-danger:hover {
    color: #dc3545 !important;
}

/* Forms */
.form-control-sm {
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
}

.form-control-sm:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Checkbox */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 0.375rem !important;
    margin: 0;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Deleted row */
.deleted-row {
    background-color: #f8f9fa;
}

.deleted-row td {
    color: #adb5bd !important;
    text-decoration: line-through;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}


/* Hover effect for cards */
.hover-shadow {
    transition: all 0.2s ease-in-out;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: #0d6efd !important;
}