/* TechHub Reporting Dashboard Styles */

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar + .flex-grow-1 {
    margin-left: 250px;
}

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

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

/* Metric card specific styles */
.border-start.border-4 {
    border-left-width: 4px !important;
}

/* Table styles */
.table-responsive {
    scrollbar-width: thin;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1;
}

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

/* Code display */
code {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Filter dropdown */
.dropdown-menu.show {
    display: block;
    position: absolute;
    z-index: 1050;
}

/* Chart container sizing */
canvas {
    max-width: 100%;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100% !important;
        height: auto;
        min-height: auto;
    }

    .sidebar + .flex-grow-1 {
        margin-left: 0;
    }

    .d-flex.flex-column.w-100 {
        flex-direction: column !important;
    }
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }

    .sidebar + .flex-grow-1 {
        margin-left: 0;
    }

    .card {
        break-inside: avoid;
    }
}
