/* main.css */
body {
    background: #f8f9fa;
}

.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#app {
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(135deg, #f8fafc 70%, #e3e6f3 100%);
    border-right: 1px solid #e3e6f3;
    min-height: 100vh;
    transition: box-shadow 0.2s;
    width: 240px;
}
.sidebar .nav-link {
    color: #495057;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
}
 .nav-link.active, .sidebar .nav-link:hover {
    background: #e3e6f3;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(8, 19, 44, 0.867);
}


.navbar .navbar-brand {
    color: #fff !important;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.navbar .btn-outline-light {
    border-color: #fff;
    color: #fff;
}
.navbar .btn-outline-light:hover {
    background: #fff;
    color: #0d6efd;
}
#mainContent {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    min-height: 80vh;
}
.table-accent-wrapper {
    border-top: 8px outset #0d6dfdc9;
border-left: 8px outset #0b4bacea;

    padding: 12px;
    background-color: #f8f9fa;       /* light contrast */
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(13,110,253,.15);

}

/* Responsive layout for sidebar and main content */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        left: -240px;
        top: 56px;
        height: calc(100% - 56px);
        box-shadow: 2px 0 8px rgba(0,0,0,0.08);
        transition: left 0.3s;
    }
    .sidebar.show {
        left: 0;
    }
    #mainContent {
        margin-left: 0;
        padding: 1rem;
    }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        background: rgba(0,0,0,0.2);
        z-index: 1039;
    }
}
@media (max-width: 575.98px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden !important;
    }
    .navbar {
        min-width: 100vw;
        width: 100vw;
        left: 0;
        right: 0;
        position: fixed;
        top: 0;
        z-index: 1050;
        border-radius: 0 !important;
    }
    #mainContent {
        padding: 5rem 2rem !important;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
    }
    .sidebar {
        width: 80vw;
        max-width: 240px;
        min-width: 0;
    }
    .sidebar.show {
        left: 0;
    }
    .navbar .navbar-brand {
        font-size: 1rem;
        max-width: 120px;
        min-width: 0;
        padding-right: 0;
    }
    .navbar .navbar-brand .text-truncate {
        max-width: 80px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
    .navbar .d-flex.align-items-center.ms-auto {
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .navbar .btn-outline-light {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    .navbar .me-2, .navbar .me-3 {
        margin-right: 0.5rem !important;
    }
    .navbar .me-3 {
        display: none !important;
    }
    #mainContent {
        padding: 5.5rem 2rem !important;
    }
}

/* main.css - custom table enhancements */
.custom-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
}
.custom-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}
.custom-table td, .custom-table th {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}
.custom-table tbody tr:hover {
    background: #f1f3f5;
    transition: background 0.2s;
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
}


/* ///////// Additional styles for student cards and other components  */

/* Add to your main.css or create a new CSS file for parent components */
/* Link Modal Styling */
.modal-xl {
    max-width: 1200px;
}

.student-card .card {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(11, 75, 174, 0.15) !important;
}

.student-card.processing {
    opacity: 0.7;
    pointer-events: none;
}

.student-card.processing .form-check-input {
    opacity: 0.5;
}

/* Toggle Switch Styling */
.form-check-input {
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #0b4bacea !important;
    border-color: #0b4bacea !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(11, 75, 174, 0.25) !important;
}

.form-check-input:not(:checked) {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.form-check-input:hover {
    transform: scale(1.05);
}

/* Stats Cards */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Detail Items */
.detail-item {
    padding: 4px 0;
}

.detail-item small {
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Empty State */
.empty-state-card {
    transition: all 0.3s ease;
}

.empty-state-card:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Toast Notification */
.toast {
    min-width: 300px;
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modal-xl {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .student-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .student-card .row {
        flex-direction: column;
    }
    
    .student-card .col-md-6 {
        width: 100% !important;
        margin-bottom: 0.75rem;
    }
    
    .text-truncate {
        max-width: 180px;
    }
    
    .toggle-container {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .toggle-container .form-switch {
        display: inline-block;
    }
}

/* Card Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-card {
    animation: fadeIn 0.4s ease-out;
}