/* Stake Dashboard - Custom Styles */

/* Drop zone styling */
.drop-zone {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: #dee2e6 !important;
}

.drop-zone:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa;
}

/* Card hover effect */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

/* Chart containers - ensure minimum height */
.chart-container canvas {
    min-height: 250px;
}

/* KPI Cards */
.kpi-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion styling for metrics */
.accordion-button:not(.collapsed) {
    background-color: #f0f4ff;
    color: #0d47a1;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

/* Table improvements */
.table th {
    white-space: nowrap;
}

/* Handbook search highlights */
.handbook-snippet mark {
    background-color: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

/* Handbook content styling */
.handbook-content img.icon {
    display: none;
}

.handbook-content img {
    max-width: 100%;
    height: auto;
}

/* Inline section numbers next to titles */
.handbook-content header {
    display: block;
    margin-top: 1.5rem;
}

.handbook-content header .title-number {
    display: inline;
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: inherit;
}

.handbook-content header h2,
.handbook-content header h3,
.handbook-content header h4 {
    display: inline;
}

/* Add line break after the header block */
.handbook-content header::after {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

.handbook-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.handbook-content table th,
.handbook-content table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert-dismissible .btn-close,
    form {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .card-header {
        background-color: #f5f5f5 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table-dark th {
        background-color: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge {
        border: 1px solid #999;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        font-size: 10pt;
    }

    h2 {
        font-size: 16pt;
    }
}
