@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #00c6ff;
    --primary-grad: linear-gradient(to right, #00c6ff, #0072ff);
    --accent: #ff0055;
    --text-main: #ffffff;
    --text-muted: #aab2bd;
    --font: 'Poppins', sans-serif;
}
/* Sidebar Layout */
body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(10, 10, 30, 0.95);
    border-right: 1px solid rgba(0, 198, 255, 0.2);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
}

.nav-tab {
    display: block;
    padding: 15px 20px;
    color: #aab2bd;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.nav-tab:hover, .nav-tab.active {
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    border-left: 4px solid #00c6ff;
}

.admin-link {
    color: #ff4b2b;
}

.main-content {
    flex: 1;
    margin-left: 260px; /* Width of sidebar */
    padding: 40px;
    width: calc(100% - 260px);
}
* { box-sizing: border-box; outline: none; }

body {
    margin: 0; padding: 0;
    font-family: var(--font);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Floating Orbs Background */

body::before, body::after {
    content: ''; position: fixed; width: 400px; height: 400px;
    border-radius: 50%; filter: blur(100px); z-index: -1;
    opacity: 0.4; animation: float 10s infinite alternate;
}
body::before { background: #00c6ff; top: -100px; left: -100px; }
body::after { background: #ff0055; bottom: -100px; right: -100px; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 50px); } }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

/* Navigation */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; margin-bottom: 30px; }
.logo { font-size: 2rem; font-weight: 800; background: var(--primary-grad); -webkit-background-clip: text; color: transparent; letter-spacing: -1px; }
.nav-btn { color: var(--text-muted); text-decoration: none; font-weight: 600; margin-left: 20px; transition: 0.3s; }
.nav-btn:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.nav-btn.logout { color: var(--accent); }

/* Inputs & Buttons */
input, select {
    width: 100%; padding: 15px; margin-bottom: 15px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 12px; color: #fff; font-size: 1rem; transition: 0.3s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0,198,255,0.3); }

.btn {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: var(--primary-grad); color: #fff; font-weight: 800;
    cursor: pointer; font-size: 1rem; transition: 0.3s; text-align: center; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,198,255,0.3); display: inline-block; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,198,255,0.5); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 4px 15px rgba(255,75,43,0.3); }

/* Grid Systems */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.shop-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; max-height: 70vh; overflow-y: auto; padding-right: 10px; }

/* Item Card */
.item-card {
    background: rgba(255,255,255,0.02); border: 1px solid transparent;
    border-radius: 16px; padding: 15px; text-align: center; cursor: pointer; transition: 0.3s;
}
.item-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.item-card.active { border-color: var(--primary); background: rgba(0,198,255,0.1); box-shadow: 0 0 20px rgba(0,198,255,0.2); }
.item-img { width: 100%; height: 100px; background: rgba(0,0,0,0.3); border-radius: 10px; margin-bottom: 10px; display: grid; place-items: center; }
.item-img img { max-width: 80%; max-height: 80%; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { text-align: left; padding: 15px; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.badge.active { background: rgba(0,198,255,0.2); color: #00c6ff; }
.badge.banned { background: rgba(255,0,85,0.2); color: #ff0055; }

/* Login Center */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 100%; max-width: 420px; padding: 40px; text-align: center; }

@media (max-width: 900px) { .shop-wrapper { grid-template-columns: 1fr; } }
