:root {
    --color-primary: #ffbd12;
    --color-primary-hover: #e0a300;
    --color-secondary: #ff5c00;
    --bg-app: #0f0f0f;
    --bg-card: #1e1e1e;
    --bg-sidebar: #121212;
    --bg-input: #252525;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;

    --status-pending: #fbbf24;
    --status-preparing: #3b82f6;
    --status-ready: #10b981;
    --status-delivered: #8b5cf6;
    --status-cancelled: #ef4444;

    --sidebar-width: 260px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;

    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 189, 18, 0.25);
    background-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.25);
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
}

.input-field:focus {
    border-color: var(--color-primary);
    background: #2a2a2a;
}

select.input-field {
    cursor: pointer;
}

/* Glass & Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    overflow: hidden;
}

/* Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #050505;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: var(--glass-border);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 40px 24px;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.8rem;
    letter-spacing: -1px;
    margin-bottom: 5px;
    color: white;
}

.sidebar-header h2 span {
    color: var(--color-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(255, 189, 18, 0.05);
    border-left-color: var(--color-primary);
}

.sidebar-footer {
    padding: 24px;
    border-top: var(--glass-border);
}

.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

/* Finance Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    borderRadius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 189, 18, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
}

.stat-info .label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info .value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-top: 5px;
}

/* Products Grid */
.product-grid {
    display: grid;
    gap: 16px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-item img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 20px;
}

.product-info {
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* Login Page */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 50px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 0;
        padding: 20px;
    }

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

@media (min-width: 901px) {
    .mobile-header {
        display: none;
    }
}