*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
background:#0d1117;
color:white;
font-family:Poppins,sans-serif;
padding:20px;
}

#loginContainer{
max-width:450px;
margin:100px auto;
background:linear-gradient(
145deg,
#161b22,
#1f2937
);
padding:35px;
border-radius:20px;
text-align:center;
border:1px solid rgba(255,215,0,.2);
box-shadow:0 10px 30px rgba(0,0,0,.4);
}

#loginContainer h1{
margin-bottom:20px;
color:#FFD700;
}

input,
textarea{
width:100%;
padding:14px;
margin:10px 0;
background:#0d1117;
color:white;
border:1px solid #333;
border-radius:10px;
}

button{
width:100%;
padding:12px;
background:#FFD700;
border:none;
border-radius:10px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

button:hover{
transform:translateY(-2px);
}

.dashboard{
max-width:800px;
margin:auto;
}

.dashboard h1{
margin-bottom:20px;
color:#FFD700;
}

#productList{
margin-top:20px;
}

.product-item{
background:#222;
padding:15px;
margin-bottom:10px;
border-radius:8px;
}

.stats-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin:30px 0;
}

.stat-card{
background:#111;
padding:25px;
border-radius:10px;
text-align:center;
border:1px solid #333;
}

.stat-card h3{
color:#ffd700;
margin-bottom:10px;
}

.stat-card p{
font-size:32px;
font-weight:bold;
color:white;
}

.dashboard-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin:30px 0;
}

.dashboard-card{
background:#161b22;
padding:25px;
border-radius:15px;
box-shadow:0 5px 20px rgba(0,0,0,.3);
transition:.3s;
border-left:5px solid #FFD700;
}

.dashboard-card:hover{
transform:translateY(-5px);
}

.dashboard-card h3{
font-size:18px;
margin-bottom:10px;
}

.dashboard-card p{
font-size:32px;
font-weight:bold;
color:#FFD700;
}

.revenue{
border-left:5px solid #00CC66;
}

.warning{
border-left:5px solid #FFD700;
}

.info{
border-left:5px solid #00BFFF;
}

.purple{
border-left:5px solid #9B59B6;
}

.success{
border-left:5px solid #00CC66;
}

.admin-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.admin-header h1{
color:#FFD700;
margin-bottom:5px;
}

.admin-header p{
color:#999;
}

.quick-actions{
display:flex;
gap:15px;
flex-wrap:wrap;
margin-bottom:30px;
}

.action-btn{
background:#161b22;
color:white;
border:1px solid #FFD700;
padding:15px 25px;
border-radius:12px;
cursor:pointer;
font-weight:bold;
width:auto;
}

.action-btn:hover{
background:#FFD700;
color:black;
}

hr{
margin:30px 0;
border:1px solid #222;
}

#productList,
#ordersList{
margin-top:20px;
}

.product-item{
background:#161b22;
padding:20px;
border-radius:15px;
margin-bottom:15px;
border-left:4px solid #FFD700;
}

.dashboard-card h2{
color:#FFD700;
margin-bottom:15px;
}

.dashboard-card input,
.dashboard-card textarea{
background:#0d1117;
color:white;
border:1px solid #333;
}

.dashboard-card textarea{
min-height:120px;
resize:vertical;
}

#logoutBtn{
width:auto;
padding:12px 30px;
}

.dashboard-card{
min-height:130px;
display:flex;
flex-direction:column;
justify-content:center;
}

.product-card h3{
color:#FFD700;
}

#productList{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(420px,1fr));
gap:25px;
margin-top:20px;
}

.product-card{
background:linear-gradient(
145deg,
#161b22,
#1f2937
);
border-radius:20px;
padding:20px;
border:1px solid rgba(255,215,0,.2);
overflow:hidden;
transition:.3s;
position:relative;
}

.product-card img{
width:100%;
height:280px;
object-fit:cover;
border-radius:15px;
transition:.3s;
border:1px solid #333;
}

.product-card:hover img{
transform:scale(1.05);
}

.product-card h3{
color:#FFD700;
margin-top:10px;
}

.product-actions{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:10px;
margin-top:15px;
}

.product-actions button{
width:100%;
border-radius:10px;
font-weight:bold;
transition:.3s;
}

.product-actions button:hover{
transform:scale(1.03);
}

.product-actions button:hover{
transform:translateY(-3px);
}

.order-card{
background:#161b22;
padding:20px;
border-radius:15px;
margin-bottom:15px;
border-left:4px solid #00BFFF;
}

.order-card h3{
color:#FFD700;
margin-bottom:10px;
}

.order-card select{
width:100%;
padding:10px;
margin-top:10px;
background:#0d1117;
color:white;
border:1px solid #333;
border-radius:8px;
}

#productList{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(400px,1fr));
gap:20px;
}

#ordersList{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(350px,1fr));
gap:20px;
}

.product-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(255,215,0,.15);
}

/* MOBILE RESPONSIVE */

@media(max-width:768px){

body{
padding:10px;
}

.admin-header{
flex-direction:column;
align-items:flex-start;
gap:15px;
}

#logoutBtn{
width:100%;
}

.dashboard-grid{
grid-template-columns:1fr;
}

.quick-actions{
flex-direction:column;
}

.action-btn{
width:100%;
}

#productList{
grid-template-columns:1fr;
}

.product-actions{
grid-template-columns:1fr;
}

.product-card img{
height:220px;
}

input,
textarea,
button{
font-size:16px;
}

h1{
font-size:28px;
}

h2{
font-size:22px;
}

}

#searchProduct{
width:100%;
padding:15px;
margin-bottom:20px;
background:#161b22;
color:white;
border:1px solid #333;
border-radius:12px;
font-size:16px;
}

.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.8);
z-index:9999;
justify-content:center;
align-items:center;
padding:20px;
}

.modal-content{
background:#161b22;
padding:25px;
border-radius:15px;
width:100%;
max-width:500px;
border:1px solid #FFD700;
}

.modal-content h2{
color:#FFD700;
margin-bottom:15px;
}

.cancel-btn{
background:#444;
margin-top:10px;
}

.product-actions button{
background:#FFD700;
color:#000;
font-weight:700;
}

.product-actions button:nth-child(1){
background:#00BFFF;
color:#fff;
}

.product-actions button:nth-child(2){
background:#00CC66;
color:#fff;
}

.product-actions button:nth-child(3){
background:#ff4444;
color:#fff;
}

.product-actions button:nth-child(4){
background:#555;
color:#fff;
}

.status-badge{
padding:8px 12px;
border-radius:50px;
display:inline-block;
font-weight:bold;
margin-top:10px;
}

.pending{
background:#FFD700;
color:#000;
}

.processing{
background:#00BFFF;
color:#fff;
}

.shipped{
background:#9B59B6;
color:#fff;
}

.delivered{
background:#00CC66;
color:#fff;
}

.dashboard-card:hover,
.order-card:hover,
.product-card:hover{
box-shadow:
0 10px 30px rgba(255,215,0,.15);
}

input:focus,
textarea:focus,
select:focus{
outline:none;
border:1px solid #FFD700;
box-shadow:0 0 10px rgba(255,215,0,.3);
}

.product-card:hover img{
transform:scale(1.05);
}

.dashboard-card,
.product-card,
.order-card{
transition:.3s;
}

::-webkit-scrollbar{
width:8px;
}

::-webkit-scrollbar-track{
background:#111;
}

::-webkit-scrollbar-thumb{
background:#FFD700;
border-radius:20px;
}

.order-card{
background:#1b1b1b;
padding:20px;
border-radius:15px;
margin-bottom:20px;
border-left:5px solid #FFD700;
box-shadow:0 0 15px rgba(255,215,0,0.2);
}

.order-card p{
margin:8px 0;
}

.status-badge{
padding:10px;
border-radius:8px;
font-weight:bold;
text-align:center;
margin-top:10px;
}

.pending{
background:#ffc107;
color:#000;
}

.processing{
background:#0d6efd;
color:#fff;
}

.shipped{
background:#6f42c1;
color:#fff;
}

.delivered{
background:#198754;
color:#fff;
}

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:15px;
margin-top:20px;
}

.category-card{
background:#111;
border:1px solid #FFD700;
border-radius:12px;
padding:15px;
display:flex;
justify-content:space-between;
align-items:center;
}

.category-card span{
font-size:16px;
font-weight:600;
color:white;
}

.category-card button{
background:#ff3333;
border:none;
color:white;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
}