/* ISEE Brand Styles
   Based on isee.org design system
   Primary: Blue #0066B3
   Accent: Orange #FF6B35
   Text: #333333
*/

:root {
    --isee-primary1: #178754;
    --isee-primary: #0066B3;
    --isee-primary-dark: #004d8a;
    --isee-primary-light: #3385c2;
    --isee-accent: #FF6B35;
    --isee-accent-dark: #e55020;
    --isee-text: #333333;
    --isee-text-light: #666666;
    --isee-background: #f8f9fa;
    --isee-border: #dee2e6;
    --isee-success: #28a745;
    --isee-success1: #198754;
    --isee-info: #17a2b8;
    --isee-warning: #ffc107;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--isee-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--isee-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--isee-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--isee-text);
}

/* Links */
a {
    color: var(--isee-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--isee-primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: var(--isee-primary);
    border-color: var(--isee-primary);
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--isee-primary-dark);
    border-color: var(--isee-primary-dark);
}

.btn-success {
    background-color: var(--isee-accent);
    border-color: var(--isee-accent);
    font-weight: 500;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--isee-accent-dark);
    border-color: var(--isee-accent-dark);
}

.btn-outline-primary {
    color: var(--isee-primary);
    border-color: var(--isee-primary);
}

.btn-outline-primary:hover {
    background-color: var(--isee-primary);
    border-color: var(--isee-primary);
}

/* Cards */
.card {
    border: 1px solid var(--isee-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-header {
    background-color: var(--isee-primary);
    color: white;
    font-weight: 600;
    border-bottom: 2px solid var(--isee-accent);
    padding: 1rem 1.25rem;
    border-radius: 7px 7px 0 0;
}

.card-header a {
    color: white;
}

.card-header a:hover {
    color: #f0f0f0;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: var(--isee-primary);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 0.75rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 102, 179, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 179, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--isee-primary) 0%, var(--isee-primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--isee-accent);
}

.page-header h1,
.page-header h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

/* Chapter Detail Sections */
.chapter-detail h2 {
    color: var(--isee-primary);
    border-bottom: 2px solid var(--isee-accent);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.chapter-detail h6 {
    color: var(--isee-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--isee-border);
}

.chapter-detail dl dt {
    color: var(--isee-text);
    font-weight: 600;
}

.chapter-detail dl dd {
    color: var(--isee-text-light);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge-primary {
    background-color: var(--isee-primary);
}

.badge-success {
    background-color: var(--isee-success);
}

.badge-info {
    background-color: var(--isee-info);
}

.badge-warning {
    background-color: var(--isee-warning);
}

/* Alerts */
.alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--isee-info);
    color: var(--isee-text);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--isee-success);
    color: var(--isee-text);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--isee-warning);
    color: var(--isee-text);
}

/* Admin specific */
.admin-toolbar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--isee-border);
    margin-bottom: 2rem;
}

/* Financial tables */
.table-financial {
    font-size: 0.95rem;
}

.table-financial tfoot {
    font-weight: 600;
    border-top: 2px solid var(--isee-primary);
}

.table-financial .fw-bold {
    background-color: rgba(0, 102, 179, 0.05);
}

/* Export button styling */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card-header {
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .btn,
    .admin-toolbar,
    .filter-section,
    .card-header a {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .card-header {
        background-color: var(--isee-primary) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
