@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* RESET */
/*body{*/
/*    margin:0;*/
/*    font-family:'Poppins', sans-serif;*/
/*    background:#f1f5f9;*/
/*}*/


/* ===== RESET ===== */
body{
    margin:0;
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f5f5f5;
    color:#333;
    overflow-x:hidden; /* only horizontal block */
}

/* ===== HEADER ===== */
header{
    background:#2E7D32;
    color:white;
    padding:15px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    position:sticky;
    top:0;
    z-index:1000;
}

header h1{
    margin:0;
}

/* ===== NAVBAR ===== */
nav ul{
    list-style:none;
    display:flex;
    margin:0;
    padding:0;
}

nav ul li{
    position:relative;
}

nav ul li a{
    display:block;
    color:white;
    text-decoration:none;
    padding:10px 18px;
    transition:0.3s;
}

nav ul li a:hover{
    background:white;
    color:#2E7D32;
    border-radius:5px;
}

/* ===== DROPDOWN ===== */
.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    display:none;
    flex-direction:column;
    min-width:160px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-menu li a{
    color:#333;
    padding:10px 15px;
}

.dropdown-menu li a:hover{
    background:#f4f4f4;
    color:#2E7D32;
}

.dropdown:hover .dropdown-menu{
    display:block;
}

/* ===== HERO ===== */
.hero{
    padding:60px 40px;
    background:#F1F8E9;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
}

.hero-text{
    flex:1;
    min-width:300px;
}

.hero-text h2{
    font-size:36px;
    color:#2E7D32;
}

.hero-text p{
    font-size:18px;
    margin:20px 0;
}

.cta-btn{
    display:inline-block;
    padding:12px 25px;
    background:#2E7D32;
    color:white;
    text-decoration:none;
    border-radius:5px;
}

/* ===== HERO IMAGE ===== */
.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    max-width:100%;
    border-radius:10px;
}

/* LAYOUT */
.dashboard{
    display:flex;
}

/* SIDEBAR */
.sidebar{
    width:250px;
    background:white;
    padding:20px;
    box-shadow:5px 0 20px rgba(0,0,0,0.05);
}

.sidebar li{
    padding:12px;
    border-radius:10px;
    margin-bottom:10px;
    cursor:pointer;
}

.sidebar li.active{
    background:#2e7d32;
    color:white;
}

.sidebar li:hover{
    background:#e8f5e9;
}

/* CONTENT */
.content{
    flex:1;
    padding:30px;
}

/* ORDERS GRID */
.orders{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

/* CARD */
.order-card{
    background:white;
    padding:20px;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.order-card h3{
    margin:0 0 10px;
}

.order-info{
    font-size:14px;
    color:#777;
}

.price{
    font-size:18px;
    font-weight:600;
    color:#2e7d32;
}

/* STATUS */
.status{
    display:inline-block;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    margin-top:10px;
}

.delivered{
    background:#e8f5e9;
    color:#2e7d32;
}

.pending{
    background:#fff3e0;
    color:#ff9800;
}

.cancelled{
    background:#ffebee;
    color:#e53935;
}

/* BUTTON */
.order-card button{
    margin-top:10px;
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#2e7d32;
    color:white;
    cursor:pointer;
}

.order-card button:hover{
    background:#1b5e20;
}

/* MOBILE */
@media(max-width:768px){

.dashboard{
    flex-direction:column;
}

.sidebar{
    width:100%;
}

.navbar{
    flex-direction:column;
    align-items:flex-start;
}

}