.btn-outline-default {
    background-color: white;
    color: black;
    border-color: black !important;
}

    .btn-outline-default:hover {
        background-color: black !important;
        color: #fff !important;
        border-color: black !important;
    }

.top-btn {
    width: 48px !important;
    height: 41.5px !important;
    justify-content: center;
}

/* Session inactivity-timeout modal */
.session-timeout-modal .modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: none;
}

.session-timeout-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-timeout-modal .close {
    color: #fff;
    opacity: 0.85;
    text-shadow: none;
}

    .session-timeout-modal .close:hover {
        color: #fff;
        opacity: 1;
    }

.session-timeout-modal .modal-footer {
    border-top: none;
}

.session-timeout-modal .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .session-timeout-modal .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

#sessionTimeoutCountdown {
    color: var(--danger);
}


/* ---------- Pagination ---------- */
:root {
    --tbl-head-bg: color-mix(in srgb, var(--secondary-color) 10%, #fff);
    --tbl-head-color: #6b7490;
    --tbl-border: #e6e8f0;
    --tbl-hover: color-mix(in srgb, var(--secondary-color) 7%, #fff);
    --tbl-text: #1f2a4a;
    --pager-active: var(--primary-color);
}

.pagination-wrapper {
    margin-top: 14px;
}

.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--tbl-border);
    border-radius: 12px;
}

.pager-info,
.pager-size {
    color: #6b7490;
    font-size: 0.78rem;
}

    .pager-info b {
        color: var(--tbl-text);
        font-weight: 600;
    }

.pager .pagination {
    margin: 0;
    gap: 4px;
    align-items: center;
}

.pager .page-item .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tbl-border);
    border-radius: 8px !important;
    background: transparent;
    color: var(--tbl-text);
    font-size: 0.82rem;
    box-shadow: none;
}

    .pager .page-item .page-link:hover {
        background: var(--tbl-head-bg);
    }

.pager .page-item.active .page-link {
    background: var(--pager-active);
    border-color: var(--pager-active);
    color: #fff;
    font-weight: 600;
}

.pager .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.pager .page-item.ellipsis .page-link {
    border-color: transparent;
    background: transparent;
}

@media (max-width: 640px) {
    .pager {
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------- */
/* Profile page                                                            */
/* Colors layout ke --theme-primary / --theme-secondary se aate hain       */
/* (dark mode mein dark-mode.css inhe khud swap kar deti hai)              */
/* ---------------------------------------------------------------------- */

.profile-page {
    max-width: 800px;
    margin: 0; /* left aligned (pehle 0 auto se center tha) */
    padding: 1.5rem 1.75rem;
}

/* ---- Header ---- */
.profile-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-secondary, #4c95be);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 0 3px var(--theme-secondary, #4c95be); /* photo ke gird theme ki ring */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-secondary, #4c95be) 35%, transparent);
}

.profile-head h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--theme-primary, #303f5e);
}

.profile-head small {
    color: #6b7490;
}

/* ---- Sections ---- */
.profile-section {
    margin-top: 2rem;
}

    .profile-section > h3 {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        color: var(--theme-primary, #303f5e);
        border-bottom: 2px solid var(--theme-secondary, #4c95be);
    }

/* ---- Rows ---- */
.profile-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem 1.25rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

    .profile-row > label {
        margin: 0;
        padding-top: 0.45rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #6b7490;
    }

    .profile-row .form-control[readonly] {
        background-color: rgba(120, 140, 170, 0.12);
        cursor: default;
    }

/* Time zone dropdown: focus par theme ka rang */
.profile-page .form-control:focus {
    border-color: var(--theme-secondary, #4c95be);
    box-shadow: 0 0 0 0.2rem rgba(76, 149, 190, 0.25);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-secondary, #4c95be) 25%, transparent);
}

.profile-split {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.75rem;
}

/* ---- Theme settings ---- */
.profile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
}

    .profile-theme-row small {
        display: block;
        color: #6b7490;
    }

/* ---- Dark mode toggle switch ---- */
.profile-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
}

    .profile-switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.profile-switch-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    background: #c3cbdc;
    border-radius: 28px;
    transition: background-color 0.2s ease;
}

    .profile-switch-slider::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 22px;
        height: 22px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }

.profile-switch input:checked + .profile-switch-slider {
    background: var(--theme-secondary, #4c95be);
}

    .profile-switch input:checked + .profile-switch-slider::before {
        transform: translateX(22px);
    }

.profile-switch input:focus-visible + .profile-switch-slider {
    box-shadow: 0 0 0 0.2rem rgba(76, 149, 190, 0.35);
}

/* ---- Save button ---- */
.profile-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

    .profile-actions .btn-primary {
        background-color: var(--theme-primary, #303f5e);
        border-color: var(--theme-primary, #303f5e);
        color: #fff;
    }

        .profile-actions .btn-primary:hover,
        .profile-actions .btn-primary:focus {
            background-color: var(--theme-secondary, #4c95be);
            border-color: var(--theme-secondary, #4c95be);
            color: #fff;
        }

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .profile-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

        .profile-row > label {
            padding-top: 0;
        }

    .profile-page {
        padding: 1rem;
    }
}