:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}
#wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

#sidebar-wrapper {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    transition: margin-left 0.25s ease-out;
}

/* Sleek custom scrollbar for sidebar */
#sidebar-wrapper::-webkit-scrollbar {
    width: 5px;
}
#sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#sidebar-wrapper .sidebar-heading {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 1.1rem 1.25rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

#sidebar-wrapper .list-group {
    width: 100%;
    padding: 0 10px;
}

#sidebar-wrapper .sidebar-section-title {
    padding: 12px 14px 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

#sidebar-wrapper .list-group-item {
    border-radius: 8px !important;
    margin: 2px 0 !important;
    padding: 9px 12px !important;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569 !important;
    background-color: transparent;
    border: none !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover:not(.active) {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(4px);
}

#sidebar-wrapper .list-group-item:hover:not(.active) i {
    opacity: 1;
}

/* Highly Prominent Active State */
#sidebar-wrapper .list-group-item.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transform: translateX(3px);
}

#sidebar-wrapper .list-group-item.active i,
#sidebar-wrapper .list-group-item.active span,
#sidebar-wrapper .list-group-item.active .badge {
    color: #ffffff !important;
    opacity: 1 !important;
}

#sidebar-wrapper .list-group-item.active .badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#page-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.25s ease-out;
}

#page-content-wrapper .navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #ffffff !important;
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
    #sidebar-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        margin-left: 0 !important;
        overflow-y: auto !important;
    }

    #page-content-wrapper {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        min-width: calc(100% - 260px) !important;
        max-width: calc(100% - 260px) !important;
    }

    body.toggled #sidebar-wrapper {
        margin-left: -260px !important;
    }

    body.toggled #page-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile Breakpoint */
@media (max-width: 767.98px) {
    #sidebar-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 270px !important;
        height: 100vh !important;
        margin-left: -270px !important;
        z-index: 1060 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25) !important;
        transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.toggled #sidebar-wrapper {
        margin-left: 0 !important;
    }

    #sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    body.toggled #sidebar-backdrop {
        display: block;
        opacity: 1;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
/* Roll Number Card Styles */
.roll-card-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}
.roll-card-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.roll-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.roll-card-body {
    display: flex;
    gap: 30px;
}
.roll-photo-area {
    width: 150px;
    height: 180px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}
.roll-photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.roll-details {
    flex-grow: 1;
}
.roll-details-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 16px;
}
.roll-details-label {
    font-weight: 600;
    width: 160px;
    color: var(--secondary-color);
}
.roll-details-value {
    flex-grow: 1;
    border-bottom: 1px dashed #ccc;
    color: #000;
    font-weight: 500;
}
.roll-number-highlight {
    text-align: center;
    margin: 20px 0;
}
.roll-number-highlight .label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
}
.roll-number-highlight .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}
.roll-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
}
.signature-box {
    text-align: center;
    width: 200px;
}
.signature-line {
    border-top: 1px solid #000;
    margin-top: 40px;
    padding-top: 5px;
    font-size: 14px;
    font-weight: 600;
}
/* Quick action cards */
.quick-action-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 120px !important;
    height: 100% !important;
    padding: 1.25rem 0.75rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.quick-action-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    color: #0f172a !important;
}
.quick-action-card .quick-action-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}
.quick-action-card .quick-action-text {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #334155;
    margin: 0;
    display: block;
}
.quick-action-card:hover .quick-action-text {
    color: #0f172a;
}

/* Disable browser-native duplicate eye/reveal icon inside textbox (Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Purple badge & utility classes */
.bg-purple-subtle {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}
.text-purple {
    color: #6b21a8 !important;
}
.border-purple-subtle {
    border-color: #d8b4fe !important;
}
.bg-purple {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}
.bg-purple.bg-opacity-10 {
    background-color: #f3e8ff !important;
}
.text-indigo {
    color: #4f46e5 !important;
}


