/* SignBank Custom Styles */

/* CSS Custom Properties (overridden by platform colors via base.html) */
:root {
    --sb-primary: #1565C0;
    --sb-secondary: #424242;
    --sb-accent: #FF6F00;
    --sb-success: #2E7D32;
    --sb-warning: #F57F17;
    --sb-error: #C62828;
    --sb-info: #0277BD;
}

/* Override Bootstrap primary with platform color */
.btn-primary {
    background-color: var(--sb-primary);
    border-color: var(--sb-primary);
}
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--sb-primary) 85%, black);
    border-color: color-mix(in srgb, var(--sb-primary) 85%, black);
}
.btn-outline-primary {
    color: var(--sb-primary);
    border-color: var(--sb-primary);
}
.btn-outline-primary:hover {
    background-color: var(--sb-primary);
    border-color: var(--sb-primary);
}
.text-primary { color: var(--sb-primary) !important; }
.bg-primary { background-color: var(--sb-primary) !important; }

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    overflow-y: auto;
    max-height: 100vh;
}
.sidebar .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
}
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sign card */
.card .card-title a {
    color: var(--sb-primary);
}
.card .card-title a:hover {
    text-decoration: underline !important;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #666;
}

/* Typography - matching original font families */
@font-face {
    font-family: 'Lato';
    src: local('Lato');
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: local('Open Sans');
    font-display: swap;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.95rem;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 700;
}

/* Alphabet filter buttons */
.d-flex.gap-1 .btn-sm {
    min-width: 2rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Badge adjustments */
.badge {
    font-weight: 500;
}

/* Accordion (FAQs) */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--sb-primary), 0.1);
    color: var(--sb-primary);
}

/* Control panel stat cards */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
    border: none;
}
.card.bg-primary h2, .card.bg-success h2, .card.bg-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Video player */
video {
    border-radius: 0.375rem;
    background: #000;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        max-height: none;
    }
}
