@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --primary: #111827; /* Premium Siyah/Antrasit */
    --primary-hover: #374151;
    --white: #ffffff;
    --light: #f8fafc;
    --bg-color: #f3f4f6;
    --red: #ef4444;
    --green: #10b981;
    --gold: #d97706; /* Zengin Gold */
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.03);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-color); color: var(--text-main); padding-bottom: 60px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--navy); }

/* Premium Navbar (Glassmorphism) */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    color: var(--navy); 
    padding: 15px 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 1000; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.navbar-brand { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 16px; letter-spacing: 0.5px; }
.navbar-brand img { height: 45px; object-fit: contain; }
.navbar-actions { display: flex; gap: 12px; align-items: center; }

/* Layout & Cards */
.container { max-width: 1300px; margin: 40px auto; padding: 0 20px; }
.card { 
    background: var(--white); 
    border-radius: var(--radius); 
    padding: 30px; 
    box-shadow: var(--shadow); 
    border: 1px solid rgba(0,0,0,0.02); 
    margin-bottom: 30px; 
    transition: box-shadow 0.3s ease;
}
.card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.04); }
.card h3 { margin-bottom: 25px; font-weight: 600; border-bottom: 2px solid var(--light); padding-bottom: 12px; font-size: 18px; display: flex; align-items: center; gap: 8px; }

/* Grids */
.main-layout { display: grid; grid-template-columns: 1fr 380px; gap: 35px; align-items: start; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }

/* Modern Product Card */
.product-card { 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    text-align: center; 
    transition: all 0.4s ease; 
    background: var(--white); 
    display: flex; flex-direction: column; justify-content: space-between; 
    overflow: hidden;
    position: relative;
}
.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: transparent;
}
.product-card .img-wrapper {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.product-card img { width: 100%; height: 160px; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.08); }
.product-card .card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h4 { font-size: 14px; margin-bottom: 12px; color: var(--navy); line-height: 1.4; height: 40px; overflow: hidden; font-weight: 500; }
.product-card .price { color: var(--primary); font-weight: 700; font-size: 18px; margin-bottom: 20px; font-family: 'Poppins', sans-serif; }

/* Buttons */
.btn { 
    padding: 12px 20px; border: none; border-radius: var(--radius-sm); cursor: pointer; 
    text-decoration: none; font-weight: 500; font-size: 14px; 
    display: inline-flex; align-items: center; justify-content: center; 
    transition: all 0.3s ease; text-align: center; letter-spacing: 0.3px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: white; box-shadow: 0 4px 10px rgba(17,24,39,0.2); } 
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(17,24,39,0.3); }
.btn-success { background: var(--green); color: white; box-shadow: 0 4px 10px rgba(16,185,129,0.2); } 
.btn-success:hover { background: #059669; transform: translateY(-2px); }
.btn-danger { background: var(--red); color: white; } 
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--gold); color: white; } 
.btn-warning:hover { background: #b45309; }

/* Premium Inputs */
input, select, textarea { 
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--border); 
    border-radius: var(--radius-sm); margin-bottom: 18px; font-family: inherit; 
    font-size: 14px; transition: all 0.3s ease; background: #fcfcfc; color: var(--navy);
}
input:focus, select:focus, textarea:focus { 
    border-color: var(--primary); outline: none; background: var(--white); 
    box-shadow: 0 0 0 4px rgba(17,24,39,0.05); 
}
form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }

/* Elegant Tables */
.table-responsive { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; }
th { background: var(--light); color: var(--text-muted); font-weight: 600; text-align: left; padding: 16px; border-bottom: 2px solid var(--border); white-space: nowrap; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: #f8fafc; }
.order-code { font-family: 'Poppins', sans-serif; background: #f1f5f9; padding: 6px 10px; border-radius: 6px; font-weight: 600; color: var(--primary); border: 1px solid #e2e8f0; display: inline-block; margin-bottom: 5px; font-size: 13px; letter-spacing: 0.5px; }

/* Badges & Tabs */
.notif-badge { background: var(--red); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; animation: pulse 2s infinite; display: inline-block; letter-spacing: 0.5px; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(239,68,68,0); } 100% { transform: scale(1); } }
.tabs { display: flex; gap: 12px; margin-bottom: 25px; border-bottom: 2px solid var(--border); overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.tab-link { padding: 10px 20px; text-decoration: none; color: var(--text-muted); font-weight: 500; border-radius: var(--radius-sm); transition: all 0.3s; white-space: nowrap; font-family: 'Poppins', sans-serif; }
.tab-link:hover { background: var(--light); color: var(--navy); }
.tab-link.active { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(17,24,39,0.2); }

/* Cart Sidebar Styling */
.cart-item { background: var(--white); padding: 15px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.cart-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

/* Mobile Adaptations */
@media (max-width: 992px) {
    .main-layout, .admin-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .navbar { padding: 15px; flex-wrap: wrap; gap: 15px; justify-content: center; text-align: center; }
    .navbar-actions { width: 100%; justify-content: center; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-card .img-wrapper { padding: 15px; }
    .product-card img { height: 130px; }
    .card { padding: 20px; }
    th, td { padding: 12px; font-size: 13px; }
}
@media print { .no-print { display: none !important; } .card { border: none; box-shadow: none; padding:0; margin:0; } body { background: white; } }