/* ===== Dashboard Theme ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f5f7;
}

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

/* Sidebar */

.sidebar{
    width:280px;
    background:#1a1a1a;
    color:white;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    overflow:auto;
}

.logo{
    padding:25px;
    text-align:center;
    border-bottom:1px solid #333;
}

.logo h3{
    color:#d4af37;
    margin-bottom:5px;
}

.logo p{
    font-size:13px;
    color:#bbb;
}

.menu{
    list-style:none;
    padding:20px 0;
}

.menu li{
    padding:15px 25px;
    cursor:pointer;
    transition:.3s;
    font-size:15px;
}

.menu li i{
    margin-right:10px;
}

.menu li:hover,
.menu li.active{
    background:#d4af37;
    color:#000;
}

/* Main Content */

.content{
    margin-left:280px;
    flex:1;
}

/* Top Bar */

.topbar{
    background:#111;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 30px;
}

.top-right{
    display:flex;
    gap:10px;
    align-items:center;
}

.company-select{
    width:220px;
}

/* Cards */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:30px;
}

.card-box{
    background:white;
    border-radius:12px;
    padding:25px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    border-top:5px solid #d4af37;
}

.card-box h6{
    color:#666;
    margin-bottom:15px;
}

.card-box h2{
    color:#111;
    font-size:34px;
}

/* Table */

.table-section{
    background:white;
    margin:0 30px 30px;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    overflow:hidden;
}

.table-header{
    background:#d4af37;
    color:#000;
    font-weight:bold;
    padding:15px 20px;
}

/* Responsive */

@media(max-width:992px){

    .sidebar{
        width:80px;
    }

    .logo p{
        display:none;
    }

    .menu li{
        text-align:center;
        padding:18px 5px;
    }

    .menu li i{
        margin-right:0;
        display:block;
        font-size:20px;
        margin-bottom:5px;
    }

    .content{
        margin-left:80px;
    }

    .topbar{
        flex-direction:column;
        gap:15px;
        align-items:flex-start;
    }

    .company-select{
        width:100%;
    }
}

/* ==========================================================
   VDEMS PRO v1.0.2 - MAIN LAYOUT WIDTH HOTFIX
   Prevents the fixed sidebar from adding extra page width.
   ========================================================== */

.wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.content {
    flex: 0 0 auto;
    width: calc(100% - 280px);
    min-width: 0;
    max-width: calc(100% - 280px);
    margin-left: 280px;
    overflow-x: hidden;
}

.topbar,
#content-area {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#content-area {
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .sidebar {
        width: 260px;
    }

    .content {
        width: calc(100% - 260px);
        max-width: calc(100% - 260px);
        margin-left: 260px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1050;
    }

    .sidebar.show,
    .sidebar.open,
    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ==========================================================
   VDEMS PRO v1.1 - USER APPEARANCE
   ========================================================== */

.menu li:hover,
.menu li.active,
.table-header {
    background: var(--vd-primary-color, #6d28d9);
}

.menu li:hover,
.menu li.active {
    color: #ffffff;
}

.logo h3 {
    color: var(--vd-primary-color, #6d28d9);
}

.card-box {
    border-top-color: var(--vd-primary-color, #6d28d9);
}

html[data-vd-theme="dark"] body {
    background: #0f172a;
}

html[data-vd-theme="dark"] .sidebar,
html[data-vd-theme="dark"] .topbar {
    background: #020617;
}

html[data-vd-theme="dark"] .card-box,
html[data-vd-theme="dark"] .table-section {
    color: #e5e7eb;
    background: #111827;
}

html[data-vd-theme="dark"] .card-box h6 {
    color: #94a3b8;
}

html[data-vd-theme="dark"] .card-box h2 {
    color: #f8fafc;
}

body.vdems-compact-sidebar .sidebar {
    width: 88px;
}

body.vdems-compact-sidebar .sidebar .logo p,
body.vdems-compact-sidebar .sidebar .menu li span,
body.vdems-compact-sidebar .sidebar .subscription-info span,
body.vdems-compact-sidebar .sidebar .subscription-info small {
    display: none !important;
}

body.vdems-compact-sidebar .sidebar .menu li {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

body.vdems-compact-sidebar .sidebar .menu li i {
    display: block;
    margin: 0 auto;
    font-size: 20px;
}

body.vdems-compact-sidebar .content {
    width: calc(100% - 88px);
    max-width: calc(100% - 88px);
    margin-left: 88px;
}

@media (max-width: 768px) {
    body.vdems-compact-sidebar .sidebar {
        width: 250px;
    }

    body.vdems-compact-sidebar .sidebar .logo p,
    body.vdems-compact-sidebar .sidebar .menu li span {
        display: initial !important;
    }

    body.vdems-compact-sidebar .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}
