/* Layout */

body{
    margin:0;
    background:#f5f7fb;
    font-family:Arial,sans-serif;
}

.va-app{

    display:flex;

    min-height:100vh;

}

/*======================================================
Sidebar
======================================================*/

.va-sidebar{

 width:var(--sidebar-width);

    background:#fff;

    border-right:1px solid var(--va-border);

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    padding:24px;

}

.va-sidebar-brand{

    margin-bottom:40px;

    text-align:center;

}

.va-sidebar-brand-logo{

    max-width:170px;

    height:auto;

}

.va-sidebar-nav{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.va-sidebar-nav a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 16px;

    border-radius:12px;

    color:#374151;

    transition:var(--va-transition);

}

.va-sidebar-nav a:hover{

    background:#F3F4F6;

}

.va-sidebar-nav a.active{

    background:var(--va-primary);

    color:#fff;

}

.va-sidebar-footer{

    border-top:1px solid var(--va-border);

    padding-top:20px;

}

.va-user-card{

    display:flex;

    align-items:center;

    gap:14px;

    margin-bottom:18px;

}

.va-user-avatar{

    width:48px;
    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--va-primary);

    color:#fff;

    font-size:18px;

    font-weight:700;

    line-height:1;

    flex-shrink:0;

}

.va-user-card small{

    display:block;

    color:#6B7280;

}

.va-logout{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px;

    border-radius:12px;

}

.va-logout:hover{

    background:#FEF2F2;

}

/* Main */

.va-main{

    flex:1;

    display:flex;

    flex-direction:column;

}



/*======================================================
App Header
======================================================*/

.va-header{

    height:88px;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:16px 32px;

    border-bottom:1px solid var(--va-border);

    position:sticky;

    top:0;

    z-index:100;

    box-shadow:0 2px 12px rgba(0,0,0,.04);

}


/*======================================================
Header Left
======================================================*/

.va-header-left{

    display:flex;

    align-items:center;

    gap:18px;

}

/*======================================================
Logo
======================================================*/
.va-header-logo{

    height:64px;

    width:auto;

}

/*======================================================
Header Right
======================================================*/

.va-header-right{

    display:flex;

    align-items:center;

    gap:14px;

}


/*======================================================
Menu Button
======================================================*/

.va-menu-btn{

    width:42px;

    height:42px;

    border:none;

    background:transparent;

    font-size:22px;

    cursor:pointer;

    border-radius:10px;

    transition:var(--va-transition);

}

.va-menu-btn:hover{

    background:#F3F4F6;

}



/*======================================================
Icon Button
======================================================*/


.va-icon-btn{

    width:42px;

    height:42px;

    border:none;

    background:#fff;

    border-radius:12px;

    cursor:pointer;

    box-shadow:var(--va-shadow);

}


/*======================================================
Avatar
======================================================*/

.va-avatar{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:var(--va-primary);

    color:#fff;

    font-weight:bold;

    cursor:pointer;

}




/* Content */

.va-content{

    padding:40px;

}

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

.va-dashboard{

    display:flex;

    flex-direction:column;

    gap:32px;

}

/*======================================================
Welcome Section
======================================================*/

.va-welcome{

    display:flex;

    align-items:center;

    gap:20px;

    margin-bottom:32px;

}

.va-welcome-icon{

    width:70px;

    height:70px;

    border-radius:18px;

    background:#FFF7ED;

    color:var(--va-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

}

.va-welcome-icon svg{

    width:34px;

    height:34px;

}

.va-welcome-text h1{

    margin:0;

    font-size:18px;

    font-weight:500;

    color:#6B7280;

}

.va-welcome-text h2{

    margin:4px 0;

    font-size:34px;

    font-weight:700;

    color:#1F2937;

}

.va-welcome-text p{

    margin:0;

    color:#6B7280;

}

.va-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:24px;

}

.va-section-title{

    margin-top:10px;

}


/* ======================================
   HEADER
====================================== */

.va-header{

    position:sticky;
    top:0;
    z-index:999;

    background:#fff;

    border-bottom:1px solid var(--border);

}

.va-container{

    width:min(1200px,92%);
    margin:auto;

}

.va-header .va-container{

    height:78px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.va-logo img{

    height:48px;

}

.va-nav{

    display:flex;

    align-items:center;

    gap:28px;

}

.va-nav a{

    text-decoration:none;

    color:var(--text);

    font-weight:600;

}

.btn-login{

    color:var(--text);

}

.btn-primary{

    background:var(--primary);

    color:#fff !important;

    padding:12px 22px;

    border-radius:12px;

}


/* =========================================================
   HERO
========================================================= */

.va-hero{

    padding:90px 0 120px;

}

.va-hero-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:80px;

    align-items:center;

}

.va-hero-content{

    max-width:620px;

}

.va-badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:#fff4eb;

    color:var(--primary);

    font-weight:600;

    margin-bottom:24px;

}

.va-hero h1{

    font-size:58px;

    line-height:1.15;

    font-weight:800;

    color:var(--text);

    margin-bottom:28px;

}

.va-hero p{

    font-size:20px;

    line-height:1.8;

    color:var(--muted);

    margin-bottom:40px;

}

.va-hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.va-hero-preview{

    display:flex;

    justify-content:center;

    align-items:center;

}

.va-hero-preview img{

    width:100%;

    max-width:650px;

    border-radius:24px;

    box-shadow:var(--shadow);

}



/* Desktop collapse */

body.va-sidebar-collapsed .va-main{

    flex:1;

}

body.va-sidebar-collapsed .va-sidebar-brand-logo{

    width:40px;

    margin:auto;

}

body.va-sidebar-collapsed .va-sidebar-nav a{

    justify-content:center;

    padding:14px 0;

}

body.va-sidebar-collapsed .va-sidebar-nav span,

body.va-sidebar-collapsed .va-user-info,

body.va-sidebar-collapsed .va-logout span{

    display:none;

}

body.va-sidebar-collapsed .va-user{

    justify-content:center;

}

body.va-sidebar-collapsed .va-sidebar-footer{

    align-items:center;

}

/*======================================================
App Footer
======================================================*/

.va-app-footer{
    text-align:center;
    padding:24px 20px;
    font-size:13px;
    color:#6B7280;
    border-top:1px solid #E5E7EB;
    background:#fff;
}

.va-app-footer strong{
    color:#111827;
    font-weight:600;
}

@media (max-width:768px){

    .va-app-footer{
        padding:18px 16px calc(90px + env(safe-area-inset-bottom));
        font-size:12px;
    }

}