/* theme.css — loaded last, takes priority over Bootstrap, app.css, and scoped component CSS */
:root {
    --bs-primary: #6738DC;
    --bs-success: #41FFB7;
    --lila: #6738DC;
    --green: #41FFB7;
    --dark-text: #1f1f2e;
    --soft-bg: #f7f6fb;
}


@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Dashboard background */
body {
    background: var(--soft-bg);
    color: var(--dark-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1A1830;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #1A1830;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1830;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #1A1830;
}

h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #403E55;
}

h6 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #6E6B82;
}

.text-primary {
    color:var(--bs-primary)!important;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary) !important;
}

.form-range::-moz-range-thumb {
    background-color: var(--bs-primary) !important;
}

.lr-spacing {
    letter-spacing: 2px;
}

.primary-bg {
    /*background: linear-gradient(135deg, var(--lila), #7c55e8) !important;*/
    background: var(--lila)!important;
    color: #ffffff;
}
.inner-card-bg {
    background: #e8e4f9;
}

.form-check-input:checked {
    background-color: #6738dc;
    border-color: #6738dc;
}

.scroll-items {
    max-height: 300px;
    overflow-y: auto;
}
.top-menu {
    background: #f7f6fb;
}

.nav-scrollable {
    scrollbar-color: #4b4a68 #16152a;
}

    .nav-scrollable::-webkit-scrollbar-thumb {
        background: #4b4a68;
    }

        .nav-scrollable::-webkit-scrollbar-thumb:hover {
            background: #6d5efc;
        }

/* Cards */
.card {
    border: 0 !important;
    border-radius: 18px !important;
    /*box-shadow: -2px 2px 30px 13px rgba(103, 56, 220, 0.12) !important;*/
    box-shadow: -2px 2px 30px 13px rgb(103 56 220 / 21%) !important;
    overflow: hidden;
}

.card-header,
.card-footer {
    background: #fff;
    border-color: rgba(103, 56, 220, 0.08) !important;
}

.card-title {
    color: var(--lila);
    font-weight: 700;
}

/* Tables */
.table {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 31, 46, 0.06);
}

    .table thead th {
        background: #f0ecfd;
        color: #6738dc;
        border: 0 !important;
        font-weight: 600;
        padding: 1rem;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        /* Keep the column title and its sort arrow on one line */
        white-space: nowrap;
    }

    .table tbody td {
        padding: 1rem;
        vertical-align: middle;
        border-color: rgba(103, 56, 220, 0.08) !important;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(103, 56, 220, 0.035) !important;
}

.table-hover tbody tr:hover {
    background-color: rgb(187 166 243 / 39%) !important
}

.contact-table > table {
    background: transparent !important;
    box-shadow:none;
    border-radius:0;
}

.contact-table > .table thead th {
    background: transparent;
    border-bottom: 1px solid #d6d5d5!important;
}

.contact-table > .table tbody td {
    background-color:transparent;
}


/* Buttons */
.btn-primary {
    background: var(--lila) !important;
    border-color: var(--lila) !important;
    color: #fff !important;
    /*border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(103, 56, 220, 0.25);*/
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: #552bc4 !important;
        border-color: #552bc4 !important;
    }

.btn-success {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: #15151f !important;
    box-shadow: 0 8px 18px rgba(65, 255, 183, 0.25);
}

    .btn-success:hover,
    .btn-success:focus {
        background: #2beaa2 !important;
        border-color: #2beaa2 !important;
    }

.field-radius-input-group {
    border-radius: 0.375rem 0 0 0.375rem !important;
}

/* Outline buttons */
.btn-outline-primary {
    color: var(--lila) !important;
    border-color: var(--lila) !important;
}

    .btn-outline-primary:hover {
        background: var(--lila) !important;
        color: #fff !important;
    }

.btn-outline-success {
    color: #111 !important;
    border-color: var(--green) !important;
    border-radius: 12px !important;
}

    .btn-outline-success:hover {
        background: var(--green) !important;
        color: #111 !important;
    }


.btn-warning {
   background-color: #ffdc7a!important;
}
.bg-primary {
    background: var(--lila) !important;
}
    /* Badges */
    .badge.bg-primary {
        background: var(--lila) !important;
    }

    .badge.bg-success {
        background: var(--green) !important;
        color: #111 !important;
    }
    /* Status */

    .bg-info {
        background-color: #0dcaf040 !important;
        color: #0d697b !important;
    }

    .bg-danger {
        background-color: #dc354526 !important;
        color: #b32b38 !important;
    }

    .bg-purple {
        background-color: #e9d7ff;
        color: #644687;
    }

    .bg-warning {
        background-color: #ffedb6 !important;
        color: #83691b;
    }

    .bg-light-blue {
        background-color: #B4C5E4;
        color: #0056f3;
    }
    .bg-dark-blue {
        background: #16152a;
    }
    /* Forms */
    .form-control,
    .form-select {
        border-radius: 12px !important;
        border-color: rgba(103, 56, 220, 0.18) !important;
    }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--lila) !important;
            box-shadow: 0 0 0 0.25rem rgba(103, 56, 220, 0.15) !important;
        }
    /* Pagination */
    .page-link {
        color: var(--lila) !important;
        border-radius: 10px !important;
        margin: 0 3px;
    }

    .page-item.active .page-link {
        background: var(--lila) !important;
        border-color: var(--lila) !important;
        color: #fff !important;
    }
    /* Tabs container */
    .nav-tabs {
        border: 0 !important;
        gap: 10px;
        padding: 8px;
        background: rgba(103, 56, 220, 0.05);
        border-radius: 16px;
        display: inline-flex;
    }
        /* Tab items */
        .nav-tabs .nav-link {
            border: 0 !important;
            border-radius: 12px !important;
            color: #5f5f74 !important;
            font-weight: 600;
            padding: 0.75rem 1.25rem;
            transition: all 0.25s ease;
            background: transparent;
        }
            /* Hover */
            .nav-tabs .nav-link:hover {
                background: rgba(103, 56, 220, 0.08) !important;
                color: var(--lila) !important;
            }
            /* Active tab */
            .nav-tabs .nav-link.active {
                background: #ffffff;
                color: var(--bs-primary) !important;
                box-shadow: 0 8px 18px rgba(103, 56, 220, 0.25);
            }
    /* Pills style */
    .nav-pills .nav-link {
        border-radius: 999px !important;
        color: var(--lila) !important;
        font-weight: 600;
        padding: 0.7rem 1.4rem;
        transition: all 0.25s ease;
    }

        .nav-pills .nav-link:hover {
            background: rgba(103, 56, 220, 0.08) !important;
        }

        .nav-pills .nav-link.active {
            background: var(--green) !important;
            color: #111 !important;
            box-shadow: 0 8px 18px rgba(65, 255, 183, 0.25);
        }
    /* Tab content container */
    .tab-content {
        background: #fff;
        border-radius: 18px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(31, 31, 46, 0.06);
    }
    /* Optional underline modern tabs */
    .nav-tabs.tabs-underline {
        background: transparent;
        padding: 0;
        gap: 1.5rem;
    }

        .nav-tabs.tabs-underline .nav-link {
            border-radius: 0 !important;
            position: relative;
            padding-left: 0;
            padding-right: 0;
            background: transparent !important;
        }

            .nav-tabs.tabs-underline .nav-link.active {
                color: var(--lila) !important;
                box-shadow: none;
            }

                .nav-tabs.tabs-underline .nav-link.active::after {
                    content: "";
                    position: absolute;
                    bottom: -6px;
                    left: 0;
                    width: 100%;
                    height: 4px;
                    border-radius: 20px;
                    background: linear-gradient(90deg, var(--lila), var(--green));
                }

.sidebar {
    width: 280px;
    min-height: 100vh;
    /*background: linear-gradient( 180deg, #6d3df0 0%, #5a31d6 35%, #4323b2 100% );
        background: linear-gradient(45deg, #552bc4, #452697);*/
    background: #16152a;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 12px 0 40px rgba(45, 17, 120, 0.25);
    z-index: 1000;
}
    /* Brand */
    .sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        color: white;
        text-decoration: none;
        font-size: 1.7rem;
        font-weight: 700;
    }

    .sidebar-logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .sidebar-collapse-btn {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        border: 0;
        background: rgba(255,255,255,0.12);
        color: white;
        transition: 0.25s ease;
    }

        .sidebar-collapse-btn:hover {
            background: rgba(255,255,255,0.2);
        }
    /* Sections */
    .sidebar-section {
        margin-top: 1.75rem;
    }

    .sidebar-title {
        color: rgba(255,255,255,0.55);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    /* Navigation */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0.95rem 1rem;
        border-radius: 18px;
        text-decoration: none;
        color: rgba(255,255,255,0.82);
        font-weight: 600;
        transition: all 0.25s ease;
        position: relative;
    }

.nav-item > a.active {
    background-color: rgb(103 56 220) !important;
    color: #ffffff !important;
}

    .nav-item > .nav-link:hover {
    }
    /* Hover */
    .sidebar-link:hover {
        background: rgba(255,255,255,0.12);
        color: white;
        transform: translateX(4px);
    }
    /* Active */
    .sidebar-link.active {
        background: white;
        color: #6738DC !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

        .sidebar-link.active i,
        .sidebar-link.active svg {
            color: #6738DC;
        }
    /* Icons */
    .sidebar-link i,
    .sidebar-link svg {
        font-size: 1.1rem;
        min-width: 20px;
        transition: 0.25s ease;
    }
    /* Logout section */
    .sidebar-footer {
        margin-top: auto;
        padding-top: 1.5rem;
    }
    /* Divider */
    .sidebar-divider {
        height: 1px;
        background: rgba(255,255,255,0.12);
        margin: 1rem 0;
    }
    /* User card */
    .sidebar-user {
        margin-top: 1rem;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(14px);
        border-radius: 22px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sidebar-user-avatar {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        background: linear-gradient( 135deg, #8b5cf6, #6738DC );
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1.2rem;
        border: 3px solid rgba(255,255,255,0.2);
    }

    .sidebar-user-info {
        flex: 1;
    }

    .sidebar-user-name {
        color: white;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .sidebar-user-email {
        color: rgba(255,255,255,0.65);
        font-size: 0.85rem;
    }
    /* Small online dot */
    .sidebar-user-status {
        width: 10px;
        height: 10px;
        background: #41FFB7;
        border-radius: 50%;
        border: 2px solid white;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    /* Scrollbar */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 20px;
    }
    /* Mobile */
    @media (max-width: 991px) {
        .sidebar {
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

            .sidebar.show {
                transform: translateX(0);
            }
    }