/* Global styles */
:root {
    --primary-info: #17a2b8;
    --sidebar-bg: #17a2b8;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

/* Sidebar Styling (Restored to Stable Version) */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    padding-top: 20px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
}

/* Table Enhancements (Safe Responsiveness) */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    background: white;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* Cards & Components */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 10px;
}

/* Responsive Fixes (Safe and Minimal) */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        width: 100% !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .sidebar ul {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar .nav-link {
        padding: 5px 15px;
    }

    .sidebar hr, .sidebar .nav-section-title {
        display: none !important;
    }

    /* Forms should take full width but respect container padding */
    .form-control, .form-select {
        margin-bottom: 10px;
    }

    /* Small buttons stay small */
    .btn-sm {
        width: auto !important;
    }
}
