

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f7f8f7;
    color:#222;
}

/* =========================
   MAIN WRAPPER
========================= */

.account-wrapper{
    max-width:1250px;
    margin:0 auto;
    padding:55px 25px 70px;
}

/* =========================
   PAGE TITLE
========================= */

.account-title{
    text-align:center;
    margin-bottom:45px;
}

.account-title h1{
    font-family:Georgia, serif;
    font-size:34px;
    font-weight:400;
    letter-spacing:.5px;
    color:#111;
}

.account-title p{
    color:#777;
    font-size:14px;
    margin-top:10px;
}

/* =========================
   LAYOUT
========================= */

.account-layout{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:28px;
}

/* =========================
   SIDEBAR
========================= */

.account-sidebar{
    background:#fff;
    border-radius:12px;
    padding:22px;
    box-shadow:0 5px 25px rgba(0,0,0,.06);
    height:max-content;
}

.profile-mini{
    text-align:center;
    padding-bottom:22px;
    margin-bottom:20px;
    border-bottom:1px solid #eee;
}

.profile-mini img{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #e7f6ea;
}

.profile-mini h3{
    font-size:16px;
    margin-top:10px;
    margin-bottom: 7px;
}

.profile-mini span{
    display:block;
    color:#888;
    font-size:12px;
    margin-top:5px;
}

.account-menu{
    list-style:none;
}

.account-menu li{
    margin-bottom:8px;
}

.account-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 14px;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    transition:.25s;
}

.account-menu a:hover{
    background:#edf8ef;
    color:#138a25;
}

.account-menu a.active{
    background:#168c28;
    color:#fff;
    font-weight:600;
}

.menu-icon{
  
    font-size:19px;
}

/* Logout */

.account-menu .logout{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #eee;
}

.account-menu .logout a{
    color:#d93025;
}

/* =========================
   CONTENT
========================= */

.account-content{
    min-width:0;
}

/* Welcome */

.welcome-card{
    background:#fff;
    border-radius:12px;
    padding:25px 28px;
    margin-bottom:25px;
    box-shadow:0 5px 25px rgba(0,0,0,.05);

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.welcome-text h2{
    font-family:Georgia,serif;
    font-size:24px;
    font-weight:400;
    margin-bottom:7px;
}

.welcome-text p{
    color:#777;
    font-size:14px;
    margin-bottom: 0;
}

.logout-link{
    color:#168c28;
    text-decoration:none;
    font-size:13px;
}

/* =========================
   STATISTICS
========================= */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:25px;
}

.stat-card{
    background:#fff;
    border-radius:11px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.04);
    border:1px solid #f0f0f0;
}

.stat-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.stat-icon{
    width:42px;
    height:42px;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf8ef;
    color:#168c28;
    font-size:19px;
}

.stat-card small{
    display:block;
    color:#888;
    font-size:12px;
    margin-bottom:7px;
}

.stat-card h3{
    font-size:24px;
}

/* =========================
   TWO COLUMN CARDS
========================= */

.content-grid{
    display:grid;
    grid-template-columns:1.45fr 1fr;
    gap:22px;
}

/* =========================
   COMMON CARD
========================= */

.dashboard-card{
    background:#fff;
    border-radius:12px;
    padding:25px;
    box-shadow:0 5px 25px rgba(0,0,0,.05);
}

.card-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.card-header h3{
    font-family:Georgia,serif;
    font-size:20px;
    font-weight:400;
    margin-bottom: 5px;
}

.view-all{
    font-size:12px;
    color:#168c28;
    text-decoration:none;
}

/* =========================
   ACCOUNT DETAILS
========================= */

.account-detail-row{
    display:flex;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #eee;
}

.account-detail-row:last-child{
    border-bottom:none;
}

.detail-icon{
    width:38px;
    height:38px;
    background:#edf8ef;
    color:#168c28;
    border-radius:8px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-right:13px;
}

.detail-info small{
    display:block;
    color:#999;
    font-size:11px;
    margin-bottom:3px;
}

.detail-info strong{
    font-size:13px;
    font-weight:500;
}

.edit-btn{
    display:inline-block;
    margin-top:15px;
    padding:11px 20px;
    background:#111;
    color:#fff;
    text-decoration:none;
    font-size:12px;
    border-radius:5px;
    transition:.25s;
}

.edit-btn:hover{
    background:#168c28;
}

/* =========================
   RECENT ORDERS
========================= */

.order-table{
    width:100%;
    border-collapse:collapse;
}

.order-table th{
    text-align:left;
    color:#999;
    font-size:11px;
    font-weight:500;
    padding:10px 5px;
    border-bottom:1px solid #eee;
}

.order-table td{
    padding:14px 5px;
    font-size:12px;
    border-bottom:1px solid #f1f1f1;
}

.order-id{
    color:#168c28;
    font-weight:600;
}

.status{
    display:inline-block;
    padding:5px 9px;
    border-radius:20px;
    font-size:10px;
}

.status-delivered{
    background:#e7f7eb;
    color:#168c28;
}

.status-processing{
    background:#fff5d9;
    color:#a16b00;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .content-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .account-wrapper{
        padding:135px 15px 60px;
    }

    .account-title h1{
        font-size:28px;
    }

    .account-layout{
        grid-template-columns:1fr;
    }

    .account-sidebar{
        padding:15px;
    }

    .profile-mini{
        display:flex;
        align-items:center;
        text-align:left;
        gap:13px;
    }

    .profile-mini img{
        width:55px;
        height:55px;
    }

    .profile-mini h3{
        margin-top:0;
    }

    .account-menu{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:5px;
    }

    .account-menu li{
        margin:0;
    }

    .account-menu .logout{
        margin-top:0;
        padding-top:0;
        border-top:0;
    }

    .welcome-card{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

}

@media(max-width:500px){

    .stats-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .stat-card{
        padding:15px;
    }

    .stat-card h3{
        font-size:20px;
    }

    .stat-icon{
        width:35px;
        height:35px;
        font-size:15px;
    }

    .account-menu{
        grid-template-columns:1fr;
    }

    .dashboard-card{
        padding:18px;
        overflow:hidden;
    }

    .order-table{
        min-width:600px;
    }

    .order-table-wrapper{
        overflow-x:auto;
    }

}

