/* NTC-AIMS Custom Styles */

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar Styles */
#sidebar {
    min-height: 100vh;
    width: 250px;
    transition: all 0.3s;
}

#sidebar.collapsed {
    width: 70px;
}

#sidebar.collapsed .d-none.d-sm-inline {
    display: none !important;
}

#sidebar.collapsed .nav-item span {
    display: none;
}

#sidebar.collapsed .nav-item i {
    font-size: 1.2rem;
}

#sidebar.collapsed #sidebarToggle {
    margin-left: 0;
}

#content {
    transition: all 0.3s;
    width: calc(100% - 250px);
}

#sidebar.collapsed + #content {
    width: calc(100% - 70px);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Card Styles */
.border-left-primary {
    border-left: 4px solid #4e73df !important;
}

.border-left-success {
    border-left: 4px solid #1cc88a !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

.border-left-danger {
    border-left: 4px solid #e74a3b !important;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Form Styles */
.required-field::after {
    content: " *";
    color: red;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .border-light {
    border-color: #495057 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        position: fixed;
        z-index: 999;
        left: -100%;
    }
    
    #sidebar.collapsed {
        left: 0;
        width: 100%;
    }
    
    #content {
        width: 100%;
    }
    
    #sidebar.collapsed + #content {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    #sidebar, .navbar, .no-print {
        display: none !important;
    }
    
    #content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
}