:root{
--primary:#146eb4;
--primary-dark:#0f5d99;
--secondary:#ff9900;

--bg:#f5f7fa;
--card:#fff;

--text:#111827;
--text-light:#6b7280;

--border:#e5e7eb;

--success:#16a34a;
--danger:#dc2626;

--radius:14px;
}

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

body{
font-family:Inter,Segoe UI,sans-serif;
background:var(--bg);
color:var(--text);
overflow-x:hidden;
}

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

/* SIDEBAR */

.sidebar{
width:250px;
background:#fff;
border-right:1px solid var(--border);
display:flex;
flex-direction:column;
flex-shrink:0;
}

.logo{
padding:30px;
}

.logo-text{
font-size:30px;
font-weight:800;
color:var(--primary);
}

.logo-sub{
margin-top:5px;
color:#777;
}

.nav-item{
padding:16px 22px;
margin:6px 10px;
border-radius:12px;
cursor:pointer;
display:flex;
align-items:center;
gap:12px;
transition:.25s;
font-weight:600;
}

.nav-item:hover{
background:#edf6ff;
color:var(--primary);
}

.nav-item.active{
background:var(--primary);
color:#fff;
}

/* MAIN */

.main{
flex:1;
display:flex;
flex-direction:column;
}

.topbar{
min-height:90px;
background:#fff;
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 35px;
border-bottom:1px solid var(--border);
position:sticky;
top:0;
z-index:100;
flex-wrap:wrap;
gap:15px;
}

.topbar-title{
font-size:28px;
font-weight:700;
}

.topbar-sub{
color:#777;
margin-top:5px;
}

.url-wrap{
background:#e8f8ec;
padding:12px 20px;
border-radius:40px;
font-weight:700;
color:#15803d;
}

/* CONTENT */

.content{
padding:30px;
}

.page{
display:none;
}

.page.active{
display:block;
}

/* DASHBOARD */

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

.stat-card{
background:#fff;
padding:30px;
border-radius:18px;
box-shadow:0 10px 30px rgba(0,0,0,.05);
transition:.3s;
}

.stat-card:hover{
transform:translateY(-6px);
}

.stat-label{
font-size:15px;
color:#777;
}

.stat-val{
font-size:42px;
font-weight:800;
margin-top:12px;
}

.blue{color:#146eb4;}
.green{color:#16a34a;}
.red{color:#dc2626;}

/* CARD */

.card{
background:#fff;
padding:28px;
border-radius:18px;
box-shadow:0 10px 25px rgba(0,0,0,.05);
margin-bottom:25px;
}

.card-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
}

.card-title{
font-size:22px;
font-weight:700;
}

/* FORM */

.form-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
margin-bottom:20px;
}

.form-row.single{
grid-template-columns:1fr;
}

.form-group{
display:flex;
flex-direction:column;
}

label{
margin-bottom:8px;
font-weight:600;
}

input,
textarea,
select{
padding:14px;
border-radius:10px;
border:1px solid #ddd;
font-size:15px;
transition:.25s;
}

textarea{
resize:vertical;
min-height:120px;
}

input:focus,
textarea:focus,
select:focus{
outline:none;
border-color:#146eb4;
box-shadow:0 0 0 4px rgba(20,110,180,.15);
}

/* BUTTON */

.btn{
padding:12px 22px;
border:none;
cursor:pointer;
border-radius:10px;
background:#edf1f5;
font-weight:600;
transition:.25s;
}

.btn:hover{
transform:translateY(-2px);
}

.btn-primary{
background:#146eb4;
color:#fff;
}

.btn-primary:hover{
background:#0f5d99;
}

.action-buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.action-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}


@media(max-width:900px){

.topbar{
    height:auto;
    padding:15px;
    flex-wrap:wrap;
    gap:15px;
}

.topbar-title{
    font-size:22px;
}

.url-wrap{
    width:100%;
    text-align:center;
}

.card{
    padding:18px;
}

.btn{
    width:100%;
}

.order-total-row{
    flex-direction:column;
    gap:10px;
}

table{
    min-width:700px;
}

}

/* TABLE */

.table-wrapper{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
}

th{
text-align:left;
padding:16px;
font-size:13px;
color:#666;
border-bottom:2px solid #eee;
}

td{
padding:18px 16px;
border-bottom:1px solid #f2f2f2;
}

tbody tr{
transition:.2s;
}

tbody tr:hover{
background:#f8fbff;
}

/* BADGES */

.badge{
padding:6px 14px;
border-radius:40px;
font-size:13px;
font-weight:700;
}

.badge-success{
background:#dcfce7;
color:#15803d;
}

.badge-danger{
background:#fee2e2;
color:#b91c1c;
}

/* ORDER */

.order-item-row{
display:grid;
grid-template-columns:2fr 120px 70px;
gap:15px;
margin-bottom:15px;
}

.order-total-row{
display:flex;
justify-content:space-between;
margin-top:20px;
padding-top:20px;
border-top:1px solid #eee;
font-size:20px;
font-weight:700;
}

/* TOAST */

.toast{
    position:fixed;
    bottom:30px;
    right:30px;
    min-width:280px;
    max-width:420px;
    padding:16px 22px;
    border-radius:12px;
    color:#fff;
    font-weight:600;
    box-shadow:0 15px 40px rgba(0,0,0,.25);

    display:flex;
    align-items:center;
    gap:10px;

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);

    transition:all .3s ease;
    z-index:9999;
    pointer-events:none;
}

.toast.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.toast-success{
    background:#16a34a;
}

.toast-error{
    background:#dc2626;
}

.toast i{
    font-size:20px;
}

/* EMPTY */

.empty{
text-align:center;
padding:50px;
color:#999;
}

.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
}

@media(max-width:900px){

.sidebar{
    position:fixed;
    left:-260px;
    top:0;
    width:250px;
    height:100vh;
    z-index:1000;
    transition:.3s;
}

.sidebar.active{
    left:0;
}

.main{
    width:100%;
}

.menu-toggle{
    display:block;
}

.content{
    padding:18px;
}
}
.creator-credit {
    margin-top: 40px;
    padding: 16px;
    font-size: 12px;
    color: #999;
    text-align: center;
    font-style: italic;
}