/* BattScore Custom Styles - Trustworthy & Modern Design */

:root {
    /* Primary palette - trust-inspiring teal/green tones */
    --bs-primary: #0d9488;
    --bs-primary-dark: #0f766e;
    --bs-primary-light: #5eead4;
    --bs-primary-subtle: #ccfbf1;
    
    /* Neutral palette */
    --bs-body-bg: #f8fafc;
    --bs-card-bg: #ffffff;
    --bs-border-color: #e2e8f0;
    
    /* Text colors */
    --bs-body-color: #334155;
    --bs-heading-color: #1e293b;
    --bs-muted: #64748b;
    
    /* Accent colors */
    --bs-success: #22c55e;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base styles */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Header styling */
header.site-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: none;
}

header.site-header h1 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
}

header.site-header small {
    color: rgba(255, 255, 255, 0.7);
}

header.site-header .brand-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

header.site-header nav a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

header.site-header nav a:hover {
    color: white;
    text-decoration: none;
}

/* Card styling */
.card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.25rem;
    border-left: 3px solid #0d9488;
}

.card-header h5 {
    color: #0f766e;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-body {
    padding: 1.25rem;
}

/* Filter panel styling */
.filter-panel .card {
    border-radius: 12px;
}

.filter-panel .form-label {
    color: var(--bs-heading-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-panel .filter-checkbox-list {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) !important;
    border-radius: 8px !important;
}

.filter-panel .form-check-label {
    font-size: 0.875rem;
    color: var(--bs-body-color);
}

.filter-panel .form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

.filter-panel .btn-secondary {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-panel .btn-secondary:hover {
    background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
    color: white;
}

/* Table styling */
.table {
    margin-bottom: 0;
}

#data-table .table thead,
.table thead {
    background: #f1f5f9 !important;
    border-bottom: 2px solid #cbd5e1;
}

#data-table .table thead tr,
.table thead tr {
    background: transparent !important;
}

#data-table .table thead th,
.table thead th {
    color: #0f766e !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border: none;
    white-space: nowrap;
    background: transparent !important;
}

.table thead th.sortable:hover {
    background: #e2e8f0 !important;
    cursor: pointer;
}

.table tbody tr {
    transition: background-color 0.15s ease;
    background: var(--bs-card-bg);
}

.table tbody tr:nth-of-type(even) {
    background: #f0fdfa;
}

.table tbody tr:hover {
    background-color: #ccfbf1 !important;
}

.table tbody tr.table-active {
    background-color: #99f6e4 !important;
    box-shadow: inset 3px 0 0 #0d9488;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-color: var(--bs-border-color);
    border-bottom: 1px solid #e2e8f0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
}

/* List group styling */
.list-group-item {
    border-color: var(--bs-border-color);
    padding: 1rem;
    transition: background-color 0.15s ease;
}

.list-group-item:hover {
    background-color: var(--bs-body-bg);
}

.list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Chart panel */
#chart-panel .card {
    background: linear-gradient(180deg, var(--bs-card-bg) 0%, #f8fafc 100%);
}

#chart-placeholder {
    color: var(--bs-muted);
}

#chart-placeholder p {
    font-size: 0.95rem;
}

/* Pricing panel */
#pricing-panel .card-header h5 {
    color: #0f766e;
}

#pricing-panel h6 {
    color: var(--bs-heading-color);
    font-weight: 600;
}

/* Form controls */
.form-check-input {
    border-radius: 4px;
    border: 2px solid #94a3b8;
    width: 1.1em;
    height: 1.1em;
}

.form-check-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

/* Chart selection checkboxes in table */
.chart-select-checkbox {
    border: 2px solid #64748b;
    width: 1.2em;
    height: 1.2em;
}

.chart-select-checkbox:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

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

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-muted);
}

/* Collapse toggle button */
.btn-link {
    color: #0d9488;
    text-decoration: none;
}

.btn-link:hover {
    color: #0f766e;
}

.collapse-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Links */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--bs-primary-dark);
    text-decoration: underline;
}

/* Trust indicators section (optional future use) */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bs-primary-subtle);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--bs-primary-dark);
    font-weight: 500;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
}

/* Empty state styling */
.text-muted {
    color: var(--bs-muted) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar-column {
        max-height: 300px;
    }
    
    .card-header h5 {
        font-size: 0.9rem;
    }
}

/* Animation for interactive elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

