/* ADMIN DASHBOARD - BOSS MODE STYLES */

/* Metal Mania - Local */
@font-face {
  font-family: 'Metal Mania';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* Updated to v23 and absolute path */
  src: url('/assets/fonts/metal-mania-v23-latin-regular.woff2') format('woff2');
}

/* Inter - Local */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* Updated to v20 and absolute path */
  src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
:root {
    --bg-dark: #09090b;
    --bg-card: #121214;
    --border-color: #27272a;
    --primary: #FF6600;
    --primary-hover: #ff8533;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}
* {  font-family: 'Inter' !important; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif !important; 
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, handle in content */
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    height: 100vh;
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar h2 { 
    color: var(--primary); 
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase; 
    margin: 0 0 40px 10px;
    font-size: 24px;
    letter-spacing: 1px;
}

.menu-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 12px 15px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.menu-link:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary);
}

.menu-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto; /* Scroll inside content area */
    background: radial-gradient(circle at top right, #1a1a1a 0%, #09090b 40%);
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* CARDS (Stats) */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px; 
}

.stat-card { 
    background: var(--bg-card); 
    padding: 25px; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-card h3 { 
    color: var(--text-muted); 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin: 0;
}

.stat-card p { 
    font-size: 28px; 
    font-weight: 700; 
    color: white; 
    margin: 10px 0 0 0;
    font-family: 'Oswald', sans-serif;
}

/* TABLES */
table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
    margin-top: 20px; 
    background: var(--bg-card); 
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

th { 
    background: #18181b; 
    padding: 18px; 
    text-align: left; 
    color: var(--text-muted); 
    font-size: 12px; 
    text-transform: uppercase; 
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

td { 
    padding: 18px; 
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: #e4e4e7;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #1c1c1f; }

img.thumb { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid var(--border-color);
}

/* FORMS */
.admin-form { 
    background: var(--bg-card); 
    padding: 30px; 
    border: 1px solid var(--border-color); 
    border-radius: 12px;
    max-width: 600px; 
    margin-bottom: 30px; 
}

input, textarea, select { 
    width: 100%; 
    padding: 12px; 
    background: #000; 
    border: 1px solid var(--border-color); 
    color: white; 
    margin-bottom: 20px; 
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* BUTTONS */
.btn-admin { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    cursor: pointer; 
    font-weight: 600; 
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.2s;
    display: inline-block;
}

.btn-admin:hover { 
    background: var(--primary-hover); 
    transform: translateY(-1px);
}

.btn-edit, .btn-delete, .btn-print { 
    padding: 6px 12px; 
    text-decoration: none; 
    font-size: 11px; 
    border-radius: 4px; 
    font-weight: 600;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-edit { background: #27272a; color: white; border-color: #3f3f46; }
.btn-edit:hover { border-color: var(--text-muted); }

.btn-delete { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.btn-delete:hover { background: var(--danger); color: white; }

.btn-print { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.2); margin-left: 5px;}
.btn-print:hover { background: var(--success); color: white; }

/* UTILS */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }