*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f5f7f6;
    color:#222;
}

a{
    text-decoration:none;
}

.vendor-layout{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:240px;
    background:#0d6b2f;
    color:white;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    padding:20px;
}

.brand{
    text-align:center;
    margin-bottom:30px;
}

.brand h2{
    font-size:24px;
}

.brand span{
    font-size:13px;
}

.sidebar nav a{
    display:block;
    color:white;
    padding:13px 15px;
    margin:5px 0;
    border-radius:7px;
}

.sidebar nav a:hover{
    background:rgba(255,255,255,.15);
}

.logout-link{
    margin-top:30px !important;
}

/* MAIN */

.main-content{
    margin-left:240px;
    width:calc(100% - 240px);
}

.topbar{
    height:65px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.vendor-user{
    display:flex;
    align-items:center;
    gap:20px;
}

.vendor-user a{
    color:#0d6b2f;
}

.menu-btn{
    display:none;
    border:0;
    background:none;
    font-size:25px;
}

.page-container{
    padding:25px;
}

h1{
    margin-bottom:10px;
}

.welcome{
    color:#666;
    margin-bottom:25px;
}

/* CARDS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:25px 0;
}

.stat-card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.stat-card h3{
    color:#666;
    font-size:15px;
    margin-bottom:12px;
}

.stat-card strong{
    color:#0d6b2f;
    font-size:25px;
}

/* DASHBOARD LINKS */

.dashboard-links{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.dashboard-links a{
    background:#0d6b2f;
    color:white;
    padding:13px 20px;
    border-radius:7px;
}

/* TABLE */

.table-container{
    background:white;
    padding:15px;
    border-radius:10px;
    overflow-x:auto;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:14px;
    border-bottom:1px solid #eee;
    text-align:left;
}

th{
    background:#f2f5f3;
}

.stock-form{
    display:flex;
    gap:6px;
}

.stock-form input{
    width:80px;
    padding:8px;
    border:1px solid #ccc;
    border-radius:5px;
}

button{
    background:#0d6b2f;
    color:white;
    border:0;
    padding:8px 12px;
    border-radius:5px;
    cursor:pointer;
}

button:hover{
    background:#095524;
}

/* BADGE */

.badge{
    display:inline-block;
    padding:5px 10px;
    border-radius:20px;
    background:#e9eeee;
    font-size:12px;
}

.badge.active{
    background:#d8f5df;
    color:#08752e;
}

.badge.inactive{
    background:#ffe0e0;
    color:#b00000;
}

/* ALERT */

.alert{
    padding:12px;
    border-radius:6px;
    margin:15px 0;
}

.alert.success{
    background:#d8f5df;
    color:#08752e;
}

.alert.error{
    background:#ffe0e0;
    color:#b00000;
}

/* EARNINGS */

.earning-box{
    background:white;
    padding:25px;
    margin-top:25px;
    border-radius:10px;
}

.earning-box p{
    margin:15px 0;
}

/* LOGIN */

.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f2f6f3;
}

.login-box{
    background:white;
    width:380px;
    padding:35px;
    border-radius:12px;
    box-shadow:0 5px 25px rgba(0,0,0,.1);
}

.login-box h1{
    text-align:center;
    color:#0d6b2f;
}

.login-box h2{
    text-align:center;
    margin-bottom:25px;
}

.login-box input{
    width:100%;
    padding:13px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
}

.login-box button{
    width:100%;
    padding:13px;
}

/* FOOTER */

.footer{
    padding:20px;
    text-align:center;
    color:#777;
}

/* MOBILE */

@media(max-width:900px){

    .sidebar{
        transform:translateX(-100%);
        transition:.3s;
        z-index:1000;
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .main-content{
        margin-left:0;
        width:100%;
    }

    .menu-btn{
        display:block;
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:600px){

    .page-container{
        padding:15px;
    }

    .topbar{
        padding:0 15px;
    }

    .vendor-user span{
        display:none;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .login-box{
        width:92%;
        padding:25px;
    }

    th,
    td{
        white-space:nowrap;
    }

}