/*
 * style.css - main stylesheet for the BCS application.
 * Loaded on every page via base.html, on top of Bootstrap 5.
 * Provides light visual tweaks to cards, tables, buttons, badges, navbar,
 * forms and alerts, plus a few responsive adjustments for small screens.
 */

/* General styles */
body {
    background-color: #f8f9fa;
}

/* Card styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Table styles */
.table th {
    background-color: #f8f9fa;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Button group spacing */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Badge styles */
.badge {
    font-size: 0.875rem;
    padding: 0.4em 0.6em;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    padding: 0.5rem 1rem;
}

.nav-link i {
    margin-right: 0.5rem;
}

/* Form styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert styles */
.alert {
    margin-bottom: 1rem;
}

/* Sidebar (logged-in left menu) - fixed width on tablets/desktops */
.sidebar {
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1rem;
}

.sidebar .nav-link {
    color: #343a40;
    border-radius: 0.375rem;
    margin-bottom: 0.15rem;
}

.sidebar .nav-link:hover {
    background-color: #f1f3f5;
}

@media (min-width: 768px) {
    /* col-md-auto lets us pin an exact width; the content column fills the rest */
    .sidebar {
        width: 210px;
        min-height: calc(100vh - 1.5rem);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
} 