/* Main Layout */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Main Content Area */
main.col-md-9,
main.col-lg-10 {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: margin-left 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    main.col-md-9,
    main.col-lg-10 {
        margin-left: 70px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    main.col-md-9,
    main.col-lg-10 {
        margin-left: 0;
        padding: 15px;
    }
    
    /* Mobile Menu Toggle Button */
    .menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 9999;
        background-color: #800000;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .menu-toggle:hover {
        background-color: #600000;
    }
}

/* Header Styles */
.d-flex.justify-content-between.flex-wrap.flex-md-nowrap.align-items-center.pt-3.pb-2.mb-3.border-bottom {
    background-color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card .card-header {
    background-color: white;
    border-bottom: 2px solid #800000;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.card .card-body {
    padding: 20px;
}

/* Table Styles */
.table-custom {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table-custom thead th {
    background-color: #800000;
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table-custom tbody tr {
    transition: background-color 0.3s;
}

.table-custom tbody tr:hover {
    background-color: rgba(128, 0, 0, 0.05);
}

/* Button Styles */
.btn-primary {
    background-color: #800000;
    border-color: #800000;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #600000;
    border-color: #600000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
}

.btn-outline-primary {
    color: #800000;
    border-color: #800000;
}

.btn-outline-primary:hover {
    background-color: #800000;
    border-color: #800000;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-primary {
    background-color: #800000;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Form Styles */
.form-control,
.form-select {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #800000;
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

.form-check-input:checked {
    background-color: #800000;
    border-color: #800000;
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid #800000;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-body {
    padding: 20px;
}

.stat-card h3 {
    color: #800000;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card h6 {
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .user-sidebar,
    .admin-sidebar,
    .menu-toggle,
    .no-print {
        display: none !important;
    }
    
    main.col-md-9,
    main.col-lg-10 {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}