/* Dev Group of Companies - Exact Aquiry Light Theme with Inter & Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --dev-primary: #5b50a0;
    --dev-primary-light: #f3eefb;
    --dev-primary-hover: #4e448b;
    --dev-accent: #8854d0;
    --dev-success: #0ab39c;
    --dev-success-light: #e6f7f5;
    --dev-danger: #f06548;
    --dev-danger-light: #feebe7;
    --dev-warning: #f7b84b;
    --dev-warning-light: #fef7ec;
    --dev-info: #299cdb;
    --dev-info-light: #eaf5fc;
    --dev-dark: #212529;
    --dev-body-bg: #f8f9fa;
    --dev-card-bg: #ffffff;
    --dev-border: #eaedf1;
    --dev-text-main: #212529;
    --dev-text-muted: #74788d;
    --dev-sidebar-bg: #ffffff;
    --dev-sidebar-border: #eef0f4;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: var(--dev-body-bg);
    color: var(--dev-text-main);
    font-size: 13px;
    letter-spacing: -0.1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================================
   TOPBAR HEADER - Exact Match to Screenshot
   ======================================================== */
#page-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid var(--dev-border);
    z-index: 1000;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

/* ========================================================
   SIDEBAR - Pure White Theme with Soft Lavender Active
   ======================================================== */
.sidebar-left {
    width: 250px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: var(--dev-sidebar-bg) !important;
    border-right: 1px solid var(--dev-sidebar-border) !important;
    color: #495057;
    z-index: 1001;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-left::-webkit-scrollbar {
    width: 5px;
}
.sidebar-left::-webkit-scrollbar-thumb {
    background: #eaedf1;
    border-radius: 4px;
}

.sidebar-brand {
    padding: 4px 16px !important;
    min-height: 65px;
    background: #ffffff !important;
    border-bottom: 1px solid var(--dev-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand img {
    max-height: 56px !important;
    height: 56px !important;
    width: auto !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-title {
    padding: 18px 20px 6px !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #9aa2b1 !important;
    font-weight: 700 !important;
}

.sidebar-menu {
    list-style: none;
    padding: 6px 12px !important;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: #525f7f;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.sidebar-menu a i {
    font-size: 17px;
    margin-right: 11px;
    width: 20px;
    text-align: center;
    color: #7987a1;
    transition: all 0.15s ease-in-out;
}

.sidebar-menu a:hover {
    color: #5b50a0;
    background: #f7f6fc;
}

.sidebar-menu a:hover i {
    color: #5b50a0;
}

/* Active Menu Item: Soft Lavender Background with Purple Text */
.sidebar-menu li.active a {
    color: #5b50a0 !important;
    background: #f3eefb !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.sidebar-menu li.active a i {
    color: #5b50a0 !important;
}

/* ========================================================
   MAIN CONTENT CONTAINER
   ======================================================== */
.main-content {
    margin-left: 250px;
    margin-top: 65px;
    width: calc(100% - 250px);
    padding: 24px;
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
}

.page-content {
    flex-grow: 1;
    padding: 0 !important;
}

/* ========================================================
   CARDS & PANELS
   ======================================================== */
.card {
    border: 1px solid var(--dev-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    background: #ffffff !important;
    margin-bottom: 20px;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f3f7 !important;
    padding: 14px 18px !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Stat Box Numbering */
.stat-card-title {
    font-size: 11.5px;
    color: var(--dev-text-muted);
    font-weight: 600;
}

.stat-card-val {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 4px 0;
}

.stat-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ========================================================
   BADGES & PILLS
   ======================================================== */
.badge {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    padding: 4px 8px;
    border-radius: 4px;
}

.bg-purple-subtle {
    background-color: #f3eefb !important;
    color: #5b50a0 !important;
}

.bg-success-subtle {
    background-color: #e6f7f5 !important;
    color: #0ab39c !important;
}

.bg-danger-subtle {
    background-color: #feebe7 !important;
    color: #f06548 !important;
}

.bg-warning-subtle {
    background-color: #fef7ec !important;
    color: #f7b84b !important;
}

.bg-info-subtle {
    background-color: #eaf5fc !important;
    color: #299cdb !important;
}

.bg-dark-subtle {
    background-color: #f1f3f7 !important;
    color: #343a40 !important;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 14px;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #5b50a0 !important;
    border-color: #5b50a0 !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4e448b !important;
    border-color: #4e448b !important;
}

.btn-purple {
    background-color: #8854d0 !important;
    border-color: #8854d0 !important;
    color: #ffffff !important;
}

.btn-purple:hover {
    background-color: #7842c2 !important;
    border-color: #7842c2 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: #5b50a0 !important;
    border-color: #5b50a0 !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #5b50a0 !important;
    color: #ffffff !important;
}

/* ========================================================
   TABLES
   ======================================================== */
.table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #eaedf1 !important;
    padding: 11px 14px !important;
}

.table tbody td {
    padding: 11px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f3f7 !important;
    font-size: 12.5px !important;
    color: #334155;
}

.table-hover tbody tr:hover {
    background-color: #f9fbff !important;
}

/* Nav Tabs */
.nav-tabs-custom {
    border-bottom: 1px solid #eaedf1;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: #74788d;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    background: transparent;
}

.nav-tabs-custom .nav-link:hover {
    color: #5b50a0;
}

.nav-tabs-custom .nav-link.active {
    color: #5b50a0 !important;
    border-bottom: 2px solid #5b50a0 !important;
    background: transparent !important;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.footer {
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 10px;
    border-top: 1px solid var(--dev-border);
    color: #94a3b8;
    font-size: 11.5px;
}

.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

@media (max-width: 991px) {
    #page-topbar { left: 0; }
    .sidebar-left { transform: translateX(-250px); }
    .main-content { margin-left: 0; width: 100%; }
    body.sidebar-open .sidebar-left { transform: translateX(0); }
}
