:root {
    --primary: #000000;
    --secondary: #19A7CE;
    --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);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}



.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;
    }
}


/* ===== Form Inputs ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    transition: all 0.2s ease;
}

/* Focus Style */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(25, 167, 206, 0.15);
    outline: none;
}

/* Placeholder */
.form-control::placeholder {
    color: var(--text-muted);
}

/* ===== Select ===== */
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(25, 167, 206, 0.15);
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Primary Button */
.btn-primary {
    background: var(--secondary);
    border: none;
}

.btn-primary:hover {
    background: #1489a8;
}

/* Dark Button */
.btn-dark {
    background: var(--primary);
    border: none;
}

/* ===== Card ===== */
.card {
    border: none;
    border-radius: 5px;
    border:1px solid var(--border-color);
    background: var(--bg-card);
}

/* ===== Labels ===== */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== Input Group ===== */
.input-group-text {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ===== Validation ===== */
.is-invalid {
    border-color: var(--danger);
}

.is-valid {
    border-color: var(--success);
}

/* ===== Smooth Hover ===== */
.form-control:hover {
    border-color: var(--secondary);
}


.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;
}

.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;
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-success {
    background: var(--success) !important;
}

.bg-warning {
    background: var(--warning) !important;
}

.page-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    display: none;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}


.dropzone {
    border: 2px dashed var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 8px;
    /* slightly smaller padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    /* smaller text */
    max-width: 300px;
    /* optional: limit dropzone width */
}

/* Hover */
.dropzone:hover {
    border-color: var(--secondary);
    background: #f0fbff;
}

/* Drag Active */
.dropzone.dz-drag-hover {
    border-color: var(--secondary);
    background: rgba(25, 167, 206, 0.08);
}

/* Message */
.dropzone .dz-message {
    font-size: 13px;
    /* smaller font */
    color: var(--text-muted);
}

/* Preview Card */
.dropzone .dz-preview {
    display: inline-block;
    margin: 6px;
    /* smaller margin */
    width: 100%;
    /* width auto */
    /* small fixed height for preview card */
}

/* Image Preview */
.dropzone .dz-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.dropzone .dz-image img {
    width: auto;
    /* auto width */
    height: 50px;
    /* small height */
    object-fit: cover;
    /* maintain aspect ratio */
}

/* Remove Button */
.dropzone .dz-remove {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
    text-decoration: none;
    cursor: pointer;
}

/* Progress Bar */
.dropzone .dz-progress {
    height: 4px;
    /* smaller progress bar */
    background: var(--border-color);
    border-radius: 50px;
    margin-top: 4px;
}

.dropzone .dz-upload {
    background: var(--secondary);
}

/* Success */
.dropzone .dz-success-mark svg {
    fill: var(--success);
}

/* Error */
.dropzone .dz-error-mark svg {
    fill: var(--danger);
}
