﻿/* ===================== ROOT THEME ===================== */
:root {
    --theme-primary: #20A2A0;
    --theme-primary-light: rgba(32, 162, 160, 0.1);
    --theme-primary-lighter: #E8F7F7;
    --theme-primary-dark: #167877;
    --theme-text-light: #ffffff;
    --theme-text-dark: #000000;
    --theme-border: #20A2A0;
    --theme-shadow: rgba(32, 162, 160, 0.25);
    --theme-control-line-height: 1.5;
    --theme-control-padding-y: 0;
    --theme-control-padding-x: 0.75rem;
    --theme-control-padding-right-select: 2.25rem;
    --theme-control-height: calc(2.5em + 2px);
}
/* ===================== GLOBAL ===================== */
html {
    font-size: 10pt !important;
}

body, .form-control {
    font-family: 'Congenial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500;
}

    body.select2-open {
        overflow-x: hidden;
    }

input {
    autocomplete: off;
}

/* ===================== THEME UTILITIES ===================== */
.theme-bg-primary {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

.theme-border {
    border-color: var(--theme-border) !important;
}

.theme-text {
    color: var(--theme-primary) !important;
}

.theme-text {
    color: var(--theme-primary) !important;
}

.theme-bg-soft {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-text-light) !important;
}

.theme-bg-lightest {
    background-color: var(--theme-primary-lighter) !important;
}

/* ===================== EXISTING THEME CLASSES ===================== */
.theme-bg {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
    border-color: var(--theme-border);
}

    .theme-bg td {
        /* Grid ke footer mein color accept nahi ho raha tha, uske liye forcefully code kiya hai*/
        color: var(--theme-text-light) !important;
    }

.theme-bg-soft {
    background-color: var(--theme-primary-light);
    color: var(----theme-text-dark) !important;
    border-color: var(--theme-border);
}

.theme-navbar {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
    border-color: var(--theme-border);
}

.theme-card {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-border);
}

.theme-text-color, a {
    color: var(--theme-primary);
}

/* ===================== NAVBAR ===================== */
.theme-navbar .nav-item,
.theme-navbar .nav-link,
.theme-navbar .navbar-brand {
    padding: 5px 7px !important;
    color: var(--theme-text-light) !important;
}

.theme-navbar .dropdown-menu {
    background-color: var(--theme-primary-lighter) !important;
}

    .theme-navbar .dropdown-menu li a:hover {
        background-color: var(--theme-primary) !important;
        color: var(--theme-primary-lighter);
    }

    .theme-navbar .dropdown-menu li .dropdown-item {
        font-weight: 500 !important;
    }
/* ===================== BUTTON ===================== */
.theme-btn {
    padding: 5px 25px;
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-text-light);
    line-height: 1.5;
    font-weight: 600;
}

    .theme-btn:hover, .theme-btn:focus {
        background-color: var(--theme-primary-lighter) !important;
        border-color: var(--theme-primary-lighter) !important;
        color: var(--theme-primary);
        box-shadow: 0 2px 8px var(--theme-shadow) !important;
        font-weight: 600;
    }

.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

    .input-group .form-select,
    .input-group select {
        min-width: 0;
    }

    .input-group .select2-container {
        min-width: 0;
        flex: 1 1 auto;
    }

    .input-group > .select2-container {
        width: 1% !important;
    }

        .input-group > .select2-container:not(:first-child) {
            margin-left: -1px;
        }

            .input-group > .select2-container:not(:first-child) .select2-selection--single,
            .input-group > .select2-container:not(:first-child) .select2-selection--multiple {
                border-top-left-radius: 0 !important;
                border-bottom-left-radius: 0 !important;
            }

        .input-group > .select2-container:not(:last-child) .select2-selection--single,
        .input-group > .select2-container:not(:last-child) .select2-selection--multiple {
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }

.input-group-sm > .select2-container .select2-selection--single {
    height: calc(1.5em + 2px);
    min-height: calc(1.5em + 2px);
    padding-top: 0;
    padding-right: 2rem;
    padding-bottom: 0;
    padding-left: 0.5rem;
}

.input-group-lg > .select2-container .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px);
    min-height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-right: 3rem;
    padding-bottom: 0.25rem;
    padding-left: 1rem;
}

.input-group .theme-btn {
    white-space: nowrap;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* ===================== TABLE ===================== */
table tr th {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
    border: 1px solid #fff;
    padding: 5px !important;
    font-weight: 500;
}

.table th {
    padding: 5px !important;
    text-align: center;
    font-weight: 500;
}


.table td {
    padding: 5px !important;
    text-align: left;
    font-weight: 500;
    vertical-align: middle !important;
}
    /* Center td if it contains controls */
    .table td:has(input, select, button, textarea,a) {
        text-align: center;
        padding: 0px !important;
    }

.custom-table-hover tbody tr:hover {
    background-color: var(--theme-primary-light);
}

/* ===================== FORM ===================== */
.form-control, .form-select {
    border-radius: 0px !important;
    display: flex;
    align-items: center; /* Vertical center */
}

    .form-control:not(textarea):not([type="file"]),
    .form-select,
    select {
        line-height: var(--theme-control-line-height);
        padding-top: var(--theme-control-padding-y);
        padding-bottom: var(--theme-control-padding-y);
        padding-left: var(--theme-control-padding-x);
    }

    .form-control:not(textarea):not([type="file"]),
    .form-select,
    select,
    .select2-container .select2-selection--single {
        min-height: var(--theme-control-height);
    }

.form-select,
select {
    padding-right: var(--theme-control-padding-right-select);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 0.2rem var(--theme-shadow);
    }

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

    .select2-container,
    .select2-container * {
        font-family: 'Congenial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-weight: 500;
        font-size: inherit;
    }


:is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--single,
:is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--multiple {
    border-radius: 0px !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

:is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--single {
    display: flex;
    align-items: center;
    height: var(--theme-control-height);
    padding-top: var(--theme-control-padding-y);
    padding-right: var(--theme-control-padding-right-select);
    padding-bottom: var(--theme-control-padding-y);
    padding-left: var(--theme-control-padding-x);
}

    :is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--single .select2-selection__rendered {
        color: var(--theme-text-dark);
        line-height: var(--theme-control-line-height);
        margin: 0;
        padding: 0;
    }

    :is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--single .select2-selection__arrow {
        height: calc(1.5em);
    }

:is(.select2-container--default, .select2-container--bootstrap-5).select2-container--focus .select2-selection--single,
:is(.select2-container--default, .select2-container--bootstrap-5).select2-container--focus .select2-selection--multiple,
:is(.select2-container--default, .select2-container--bootstrap-5).select2-container--open .select2-selection--single,
:is(.select2-container--default, .select2-container--bootstrap-5).select2-container--open .select2-selection--multiple {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--theme-shadow) !important;
}

.select2-dropdown {
    border-color: #ced4da !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.select2-results,
.select2-results__options {
    overflow-x: hidden;
}

:is(.select2-container--default, .select2-container--bootstrap-5) .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

:is(.select2-container--default, .select2-container--bootstrap-5) .select2-results__option--selected {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-primary-dark) !important;
}

:is(.select2-container--default, .select2-container--bootstrap-5) .select2-selection--multiple .select2-selection__choice {
    border-radius: 0px !important;
    border-color: var(--theme-primary-light) !important;
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-primary-dark) !important;
}

/* ===================== CARDS ===================== */
.card {
    border-radius: 10px;
}

.card-header {
    font-weight: 600;
}

/* ===================== LIST ===================== */
.list-group-item:hover {
    background-color: var(--theme-primary-light);
}

.theme-academic-nav-wrap {
    background: linear-gradient(180deg, rgba(106, 63, 181, 0.08) 0%, rgba(106, 63, 181, 0.02) 100%);
    border: 1px solid rgba(106, 63, 181, 0.18);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 6px 18px rgba(106, 63, 181, 0.08);
}

.theme-academic-nav-title {
    align-items: center;
    color: var(--theme-primary-dark);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.25rem;
}

.theme-academic-nav {
    border-radius: 8px;
    gap: 0.45rem;
}

    .theme-academic-nav .list-group-item {
        background-color: #ffffff;
        border: 1px solid rgba(106, 63, 181, 0.16);
        border-radius: 8px !important;
        color: var(--theme-primary-dark);
        font-weight: 600;
        padding: 0.85rem 0.9rem;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

        .theme-academic-nav .list-group-item:hover {
            border-color: rgba(106, 63, 181, 0.35);
            box-shadow: 0 4px 12px rgba(106, 63, 181, 0.12);
            transform: translateX(2px);
        }

        .theme-academic-nav .list-group-item.active,
        .theme-academic-nav .list-group-item.active:hover {
            background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
            border-color: var(--theme-primary);
            box-shadow: 0 8px 18px rgba(106, 63, 181, 0.22);
            color: var(--theme-text-light);
        }

.theme-session-list {
    background-color: #fff;
    border: 1px solid rgba(106, 63, 181, 0.16);
    border-radius: 12px;
    gap: 0;
    overflow: hidden;
}

    .theme-session-list .theme-session-item {
        align-items: center;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(106, 63, 181, 0.12);
        border-radius: 0 !important;
        display: flex;
        justify-content: space-between;
        min-height: 52px;
        padding: 0.8rem 0.95rem;
    }

        .theme-session-list .theme-session-item:last-child {
            border-bottom: 0;
        }

        .theme-session-list .theme-session-item:hover {
            background-color: rgba(106, 63, 181, 0.05);
            box-shadow: none;
            transform: none;
        }

        .theme-session-list .theme-session-item.active,
        .theme-session-list .theme-session-item.active:hover {
            background: linear-gradient(90deg, rgba(106, 63, 181, 0.14) 0%, rgba(106, 63, 181, 0.04) 100%);
            border-color: rgba(106, 63, 181, 0.12);
            box-shadow: inset 4px 0 0 var(--theme-primary);
            color: var(--theme-primary-dark);
        }

.theme-session-text {
    color: inherit;
    display: block;
    font-weight: 700;
    line-height: 1.35;
    padding-right: 0.75rem;
}

.theme-session-arrow {
    align-items: center;
    background-color: rgba(106, 63, 181, 0.08);
    border-radius: 999px;
    color: var(--theme-primary);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 32px;
}

    .theme-session-arrow:hover,
    .theme-session-arrow:focus {
        background-color: var(--theme-primary);
        color: var(--theme-text-light);
        transform: translateX(2px);
    }

    .theme-session-arrow.active {
        background-color: var(--theme-primary);
        color: var(--theme-text-light);
    }

.theme-session-empty {
    background-color: rgba(106, 63, 181, 0.06);
    border: 1px dashed rgba(106, 63, 181, 0.25);
    border-radius: 12px;
    color: var(--theme-primary-dark);
    font-weight: 600;
    padding: 1rem;
}

.theme-academic-detail-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 238, 251, 0.72) 100%);
    border: 1px solid rgba(106, 63, 181, 0.16);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(106, 63, 181, 0.08);
    min-height: 100%;
    padding: 1.2rem;
}

.theme-academic-detail-header {
    border-bottom: 1px solid rgba(106, 63, 181, 0.12);
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
}

.theme-academic-detail-kicker {
    color: rgba(74, 44, 130, 0.75);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-academic-detail-title {
    color: var(--theme-primary-dark);
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.theme-session-state-badge {
    align-self: flex-start;
    background-color: var(--theme-primary);
    border-radius: 999px;
    color: var(--theme-text-light);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
}

@media (max-width: 575.98px) {
    .theme-academic-detail-title {
        font-size: 1.1rem;
    }

    .theme-session-list .theme-session-item {
        padding: 0.75rem;
    }
}

/* ===================== PAGINATION ===================== */
.page-link {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
    border-color: var(--theme-primary);
}

/* ===================== EXTRA ===================== */
.entry-section-title {
    background: var(--theme-primary);
    color: var(--theme-text-light);
    border-radius: 8px;
    padding: 0.5rem;
}
/* ===================== footer ===================== */
.session-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    text-align: center;
    z-index: 1;
}
/* ================== Login Page ==================== */
/* Scope everything inside login container */

.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

    .login-container .login-card {
        width: 100%;
        max-width: 420px;
        border: none;
        border-radius: 24px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 20px 60px var(--theme-shadow);
    }

    .login-container .login-header {
        text-align: center;
        padding: 2rem 1.75rem 1rem;
    }

    .login-container .login-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: var(--theme-primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--theme-primary);
        font-size: 1.5rem;
    }

    .login-container .login-title {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 700;
        color: var(--theme-primary-dark);
    }

    .login-container .login-subtitle {
        margin-top: 0.6rem;
        color: var(--theme-primary-dark);
        opacity: 0.7;
        font-size: 0.95rem;
    }

    .login-container .login-body {
        padding: 1.75rem;
    }

    .login-container .form-label {
        font-weight: 600;
        color: var(--theme-primary-dark);
    }

    .login-container .input-group-text {
        background-color: var(--theme-primary-lighter);
        border-color: var(--theme-primary-light);
        min-width: 46px;
        justify-content: center;
    }

    .login-container .form-control {
        border-color: var(--theme-primary-light);
        border-radius: 0.85rem;
    }

        .login-container .form-control:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 0.2rem var(--theme-primary-light);
        }

    .login-container .btn {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 0.85rem;
    }

    .login-container .login-footer {
        text-align: center;
        padding: 1rem 1.5re;
        color: var(--theme-primary-dark);
        opacity: 0.7;
        font-size: 0.92rem;
    }
/*************** Pagination Code:Start ***************/
.table-pager {
    background-color: var(--theme-primary-lighter); /* Replaced purple with a soft theme background tint */
    padding: 6px; /* Giving it a tiny bit of breathing room */
    border-radius: 8px;
}

    .table-pager table {
        padding: 0px;
        margin: 0px auto;
        border-radius: 25px;
    }

        /* Active page / Non-clickable text elements */
        .table-pager table tr td span,
        .table-pager table tr td a {
            text-align: center;
            font-size: 10pt;
            font-weight: bold;
            color: var(--theme-primary-dark) !important; /* Replaced gray with high-contrast dark teal */
            background-color: #fff;
            min-width: 25px !important;
            padding: 5px !important;
            border: 1px solid var(--theme-primary-light); /* Softer theme border line instead of harsh white */
            border-radius: 10px;
            text-decoration: none;
            display: inline-block;
        }

        /* Clickable page numbers / links */
        .table-pager table tr td a {
            padding: 5px !important;
            margin: 5px !important;
            background-color: var(--theme-primary); /* Links get filled with the main theme teal */
            color: var(--theme-text-light) !important; /* Text is clean white over the teal background */
            transition: all 0.2s ease;
        }

            /* Smooth hover state for interactive page items */
            .table-pager table tr td a:hover {
                background-color: var(--theme-primary-dark);
                border-color: var(--theme-primary-dark);
                box-shadow: 0 2px 6px var(--theme-shadow);
            }
