/* --- ADMIN THEME RESTORED --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --bg-body: #f4f4f4;
    --sidebar-bg: #000000;
    --sidebar-text: #ffffff;
    --border: #e0e0e0;
    --accent: #FFD700;
    --danger: #d93025;
}

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

body { 
    background: var(--bg-body); 
    font-family: 'Roboto', sans-serif; 
    height: 100vh; 
    overflow: hidden; 
    display: flex;
}

h1, h2, h3, button, .sidebar-nav a { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* --- AUTH SCREEN --- */
.auth-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 2000; display: flex; justify-content: center; align-items: center;
}
.auth-box {
    width: 100%; max-width: 400px; padding: 40px; text-align: center; background: #fff; border-radius: 2px;
}
.auth-box h2 { margin-bottom: 25px; }
.auth-box input {
    width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; font-family: 'Roboto'; outline: none;
}
.auth-box input:focus { border-color: #000; }
.auth-footer { margin-top: 15px; font-size: 13px; }
.auth-footer a { color: #000; font-weight: bold; text-decoration: none; border-bottom: 1px solid #000; }

/* --- SIDEBAR --- */
.sidebar {
    width: 260px; background: var(--sidebar-bg); color: var(--sidebar-text);
    display: flex; flex-direction: column; height: 100%;
    position: fixed; left: 0; top: 0; z-index: 1000; transition: 0.3s;
}

.brand-wrapper { padding: 30px 20px; border-bottom: 1px solid #333; text-align: center; }
.logo-desktop { width: 140px;} 

.sidebar nav { flex: 1; padding-top: 20px; overflow-y: auto; }
.sidebar nav a {
    display: block; padding: 15px 25px; color: #888; text-decoration: none; font-size: 14px; transition: 0.2s;
}
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: #1a1a1a; border-left: 4px solid #fff; }

.sidebar-footer { padding: 20px; border-top: 1px solid #333; }
#logout-btn { background: transparent; border: 1px solid #333; color: #fff; padding: 10px; width: 100%; cursor: pointer; }
#logout-btn:hover { background: #fff; color: #000; }

/* Role Tags */
.role-badge-lg {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    padding: 4px 10px;
    margin-top: 5px;
    letter-spacing: 1px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: bold;
}
.role-badge-lg.admin { background: #FFD700; color: #000; border: 1px solid #FFD700; }
.role-badge-lg.designer { background: transparent; color: #fff; border: 1px solid #fff; }

/* --- CONTENT --- */
.dashboard-layout { display: flex; width: 100%; }
.main-content {
    flex: 1; margin-left: 260px; padding: 40px; height: 100vh; overflow-y: auto; background: #f4f4f4;
}

.mobile-header { display: none; }

/* --- STATS GRID --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 25px; border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; }
.stat-icon { font-size: 24px; color: #000; }
.stat-card h3 { font-size: 12px; color: #888; margin-bottom: 5px; }
.stat-card p { font-size: 24px; font-weight: bold; margin: 0; }

/* --- PANELS & FORMS --- */
.panel { background: #fff; padding: 30px; border: 1px solid var(--border); margin-bottom: 30px; }
.panel h3 { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; font-size: 18px; }

.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-row > * { flex: 1; }

input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; font-family: 'Roboto'; font-size: 14px; outline: none; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: #000; }

.btn-black { background: #000; color: #fff; padding: 12px 25px; border: none; cursor: pointer; font-size: 13px; font-weight: bold; }
.btn-black:hover { background: #333; }

.cover-upload-box { 
    border: 2px dashed #ccc; height: 200px; display: flex; justify-content: center; align-items: center; 
    cursor: pointer; background: #fafafa; margin-bottom: 15px; position: relative;
}
.cover-upload-box:hover { border-color: #000; }
.preview-img { width: 100%; height: 100%; object-fit: cover; }

/* --- TABLES --- */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th { text-align: left; padding: 15px; background: #f9f9f9; font-size: 12px; border-bottom: 2px solid #eee; }
.data-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: middle; }
.tbl-img { width: 50px; height: 60px; object-fit: cover; border: 1px solid #eee; }

/* Buttons */
.btn-view { background: #333; color: #fff; padding: 6px 12px; font-size: 11px; margin-right: 5px; border: none; cursor: pointer; border-radius: 2px; }
.btn-edit { color: blue; cursor: pointer; margin-right: 10px; font-weight: bold; font-size: 12px; border: none; background: none; }
.delete-btn { color: red; cursor: pointer; font-weight: bold; font-size: 12px; border: none; background: none; }

/* --- STATUS COLORS (NEW) --- */
.status-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 2px solid #ddd;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    background: #fff;
    font-weight: bold;
    outline: none;
}

.status-select.Processing { border-color: #f39c12; color: #f39c12; background: #fff8e1; }
.status-select.Shipped { border-color: #3498db; color: #3498db; background: #eaf6ff; }
.status-select.Delivered { border-color: #2ecc71; color: #2ecc71; background: #e8f8f5; }
.status-select.Cancelled { border-color: #d93025; color: #d93025; background: #fce8e6; }

/* --- DANGER ZONE --- */
.danger-zone { border: 1px solid #ffcccc; background: #fff5f5; }
.danger-zone h3 { color: #cc0000; border-color: #ffcccc; }
.btn-danger { background: #d93025; color: #fff; padding: 12px 20px; border: none; cursor: pointer; font-family: 'Oswald'; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .sidebar { left: -100%; width: 260px; z-index: 3000; transition: 0.3s; }
    .sidebar.active { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
    
    .main-content { margin-left: 0; padding: 20px; padding-top: 80px; }
    
    .mobile-header {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; top: 0; left: 0; width: 100%; height: 60px;
        background: #000; color: #fff; padding: 0 20px; z-index: 1500;
    }
    .logo-mobile { height: 25px;}
    #menu-toggle { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
    
    .form-row { flex-direction: column; gap: 10px; }
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 4000; display: flex; justify-content: center; align-items: center;
}
.modal-box { background: #fff; padding: 30px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; border-radius: 2px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; }