/* Attendance Management Portal - Custom Styles */

:root {
    --sidebar-width: 260px;
    --primary-color: #4f46e5;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
}

/* Login Page */
.login-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.sidebar-heading {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Dashboard Cards */
.stat-card {
    border-radius: 10px;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Cards */
.card {
    border-radius: 10px;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -var(--sidebar-width);
        z-index: 1050;
        transition: left 0.3s;
    }
    .sidebar.show {
        left: 0;
    }
    #wrapper::after {
        content: '';
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    #wrapper.sidebar-open::after {
        display: block;
    }
}

/* Loading button state */
.btn-loading.loading .btn-text {
    display: none;
}
.btn-loading.loading .spinner-border {
    display: inline-block !important;
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
}

/* Navbar */
.navbar {
    min-height: 60px;
}

/* List group in corrections */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
