:root {
    --primary: #4f46e5;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,.08);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.form-control,
.form-select {
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

/* Focus effect */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.25);
}

/* Placeholder */
.form-control::placeholder {
    color: #adb5bd;
}

/* Card look */
.card {
    border-radius: 18px;
}

/* Section headings */
form h6 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.75rem;
}
/* ================================
   Base Button
================================ */
.btn {
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 1rem !important;
    transition: all .2s ease !important;
}

.btn:focus,
.btn:active {
    box-shadow: 0 0 0 .25rem rgba(79,70,229,.25) !important;
}

/* ================================
   Primary
================================ */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #3730a3 !important;
    border-color: #3730a3 !important;
}

/* ================================
   Secondary
================================ */
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-secondary:hover {
    background-color: #475569 !important;
    border-color: #475569 !important;
}

/* ================================
   Success
================================ */
.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-success:hover {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

/* ================================
   Danger
================================ */
.btn-danger {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* ================================
   Warning
================================ */
.btn-warning {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #1e293b !important;
}

.btn-warning:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #1e293b !important;
}

/* ================================
   Info
================================ */
.btn-info {
    background-color: var(--info) !important;
    border-color: var(--info) !important;
}

.btn-info:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
}

/* ================================
   Light
================================ */
.btn-light {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

.btn-light:hover {
    background-color: #f1f5f9 !important;
}

/* ================================
   Dark
================================ */
.btn-dark {
    background-color: var(--text-dark) !important;
    border-color: var(--text-dark) !important;
}

.btn-dark:hover {
    background-color: #020617 !important;
    border-color: #020617 !important;
}

/* ================================
   Outline Buttons
================================ */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary) !important;
    color: #fff !important;
}

.btn-outline-success {
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-outline-success:hover {
    background-color: var(--success) !important;
    color: #fff !important;
}

.btn-outline-danger {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-outline-danger:hover {
    background-color: var(--danger) !important;
    color: #fff !important;
}

.btn-outline-warning {
    color: var(--warning) !important;
    border-color: var(--warning) !important;
}

.btn-outline-warning:hover {
    background-color: var(--warning) !important;
    color: #1e293b !important;
}

.btn-outline-info {
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.btn-outline-info:hover {
    background-color: var(--info) !important;
    color: #fff !important;
}

/* ================================
   Disabled
================================ */
.btn:disabled,
.btn.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-shadow {
    box-shadow: var(--shadow-soft) !important;
}

.table {
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
    background-color: var(--bg-card) !important;
}

.table th {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: var(--text-muted) !important;
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table td {
    vertical-align: middle !important;
    border-color: var(--border-color) !important;
}


.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(79,70,229,.06) !important;
}

.table-bordered {
    border: 1px solid var(--border-color) !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color) !important;
}


.table-sm th,
.table-sm td {
    padding: .45rem .6rem !important;
    font-size: .875rem !important;
}

.table-success {
    background-color: rgba(34,197,94,.08) !important;
}

.table-danger {
    background-color: rgba(239,68,68,.08) !important;
}

.table-warning {
    background-color: rgba(245,158,11,.12) !important;
}

.table-info {
    background-color: rgba(14,165,233,.10) !important;
}


.tr-success {
    border-left: 4px solid var(--success) !important;
}

.tr-danger {
    border-left: 4px solid var(--danger) !important;
}

.tr-warning {
    border-left: 4px solid var(--warning) !important;
}

.tr-info {
    border-left: 4px solid var(--info) !important;
}


.table-head-primary thead th {
    background-color: rgba(79,70,229,.1) !important;
    color: var(--primary) !important;
}

.table-head-dark thead th {
    background-color: var(--text-dark) !important;
    color: #fff !important;
}

/* ================================
   Round Icon Button
================================ */
.btn-round {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-round i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Small Size Fix */
.btn-sm.btn-round {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
}

/* Hover Elevation */
.btn-round:hover {
    transform: translateY(-1px) !important;
}


.input-group-text {
    border-radius: 10px 0 0 10px;
    background: #f8f9fa;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #22c55e;
}

.pagination {
    gap: .4rem !important;
}


.page-item .page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    padding: .45rem .75rem !important;
    font-weight: 500 !important;
    transition: all .15s ease !important;
}


.page-item .page-link:hover {
    background-color: rgba(79,70,229,.08) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}


.page-item.active .page-link {
    background-color: rgba(79,70,229,.15) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(79,70,229,.25) !important;
}

.page-item.disabled .page-link {
    background-color: #f1f5f9 !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    cursor: not-allowed !important;
}


.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-weight: 600 !important;
}


.pagination-rounded .page-link {
    border-radius: 999px !important;
}

.pagination-sm .page-link {
    padding: .3rem .55rem !important;
    font-size: .85rem !important;
}

.pagination-shadow {
    padding: .5rem !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    background-color: var(--bg-card) !important;
}

.card,
.form-control,
.btn {
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setup-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.setup-form {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8fafc;
}

.setup-form form {
    background: #fff;
    padding: 30px;
}

.setup-image {
    flex: 1;
    background: #eef2ff; 
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.setup-image img {
     width: 100%;
     height: 100%;
}

@media (max-width: 768px) {
    .setup-container {
        flex-direction: column-reverse;
    }
    .setup-image {
        padding: 20px;
    }
    .setup-form {
        padding: 30px 20px;
    }
}
*::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--primary),
            var(--primary-dark));
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            var(--primary-light),
            var(--primary));
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 10px 0px;
    flex-shrink: 0;
}

.sidebar-logo img {
   max-width: 100px;
    max-height: 70px;
}

.sidebar-menu {
    flex: 1;
    /* takes remaining height */
    overflow-y: auto;
    /* allow bottom overflow */
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* smooth scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 6px;
}

.sidebar.closed {
    transform: translateX(-260px);
}


.sidebar h4 {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sidebar a {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: all .25s ease;
}

.sidebar a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}


.sidebar a:hover,
.sidebar a.active {
    background: var(--secondary);
    color: #fff;
    box-shadow: inset 4px 0 0 #fff;
}


.sidebar a:hover::after,
.sidebar a.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: .18;
    pointer-events: none;
}

.submenu {
    width: 100%;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-toggle .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform .3s ease;
}

.submenu-items {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    transition: max-height .35s ease;
}

.submenu-items a {
    padding: 12px 20px 12px 54px;
    font-size: 14px;
}

.submenu.open .submenu-items {
    max-height: 500px;
}

.submenu.open .arrow {
    transform: rotate(90deg);
}

.sidebar-bottom {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

.sidebar-bottom a {
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
    justify-content: center;
    font-weight: 600;
}

.sidebar-bottom a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

/* ===== Main ===== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left .35s ease, transform .35s ease;
}

.main-content.full {
    margin-left: 0;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Toggle button */
#toggleBtn {
    font-size: 20px;
    color: var(--primary);
    background: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#toggleBtn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Icons ===== */
.icon-btn {
    font-size: 22px;
    margin-left: 16px;
    position: relative;
    cursor: pointer;
    color: #334155;
    transition: color 0.3s ease, transform 0.2s ease;
}

.icon-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.notify-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Profile Dropdown Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.2s ease;
}

.dropdown-toggle:hover .avatar {
    transform: scale(1.05);
}

.username {
    font-weight: 500;
    color: #334155;
}

/* Topbar Select Input */
.topbar select#selectedsession {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s ease;
    width: 120px;
}

/* Hover effect */
.topbar select#selectedsession:hover {
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(24, 123, 115, 0.25);
}

/* Focus effect */
.topbar select#selectedsession:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(24, 123, 115, 0.35);
}

/* Optional: add consistent spacing in topbar */
.topbar .form-label {
    font-size: 14px;
    margin-bottom: 0;
    color: #334155;
    font-weight: 500;
}

.topbar .form-group {
    margin: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    border: none;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: #fff;
}

.dropdown-item.text-danger:hover {
    background-color: #f87171;
    color: #fff;
}
@media(max-width:768px) {
    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.push {
        transform: translateX(240px);
    }

    .overlay.show {
        display: block;
    }

    .topbar .form-label {
        display: none;
    }
}

.bg-white{
 background-color: #fff;
}

/* ================================
   Tabs Container
================================ */
.nav-tabs {
    display: flex !important;
    flex-wrap: wrap !important; /* Wrap on small screens */
    border-bottom: none !important;
    overflow-x: auto !important; /* Scrollable on small screens */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(79,70,229,.2) transparent !important;
    margin-bottom: 1rem !important;
}

.nav-tabs::-webkit-scrollbar {
    height: 6px !important;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(79,70,229,.2) !important;
    border-radius: 4px !important;
}

/* ================================
   Tab Links Base
================================ */
.nav-tabs .nav-link {
    padding:10px;
    color: var(--text-dark) !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-top-left-radius: var(--radius-sm) !important;
    border-top-right-radius: var(--radius-sm) !important;
    margin-right: 4px !important;
    transition: all .2s ease !important;
    white-space: nowrap !important;
    padding: .6rem 1.2rem !important;
    font-size: 0.95rem !important;
}

/* Active Tab */
.nav-tabs .nav-link.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-soft) !important;
}

/* Hover Tab */
.nav-tabs .nav-link:hover:not(.active) {
    background-color: rgba(79,70,229,.06) !important;
    color: var(--primary) !important;
}

/* ================================
   Tab Content
================================ */
.tab-content > .tab-pane {
    padding: 1.25rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: var(--bg-card) !important;
    box-shadow: var(--shadow-soft) !important;
    margin-top: -1px !important; /* Overlap with tabs */
    transition: all .3s ease !important;
}

/* Smooth fade-in effect */
.tab-content > .tab-pane {
    opacity: 0;
    transform: translateY(5px);
}

.tab-content > .tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Responsive for Small Screens
================================ */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-tabs .nav-link {
        flex: 0 0 auto !important;
        padding: .5rem .8rem !important;
        font-size: 0.85rem !important;
        text-align: center !important;
    }
}
