:root {
    --primary-red: #D32F2F;
    --primary-yellow: #FBC02D;
    --sidebar-bg: #1a1a1a;
    --bg-color: #f0f2f5;
    --text-color: #333;
    --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-color); }

/* --- LOGIN PAGE STYLES --- */
.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-red), #8e0000);
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.login-header img { width: 80px; margin-bottom: 10px; }
.login-header h2 { color: var(--primary-red); margin-bottom: 5px; }
.login-header p { color: #666; font-size: 0.9rem; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #999; }
.input-with-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}
.input-with-icon input:focus { border-color: var(--primary-red); }

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-login:hover { background: #b71c1c; }

.login-footer { margin-top: 20px; font-size: 0.8rem; }
.login-footer a { color: #666; text-decoration: none; }

/* --- DASHBOARD STYLES --- */
.dashboard-container { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
}
.sidebar-header img { width: 40px; }
.sidebar-header h3 { font-size: 1.1rem; }
.sidebar-header span { font-size: 0.8rem; color: var(--primary-yellow); }

.sidebar-menu { list-style: none; padding: 20px 0; flex: 1; }
.sidebar-menu li {
    padding: 15px 25px;
    cursor: pointer;
    transition: 0.3s;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sidebar-menu li:hover, .sidebar-menu li.active {
    background: var(--primary-red);
    color: white;
}

.sidebar-footer { padding: 20px; border-top: 1px solid #333; }
.logout-btn { color: #aaa; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.logout-btn:hover { color: var(--primary-yellow); }

/* Main Content */
.main-content { flex: 1; overflow-y: auto; padding: 30px; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-profile { display: flex; align-items: center; gap: 10px; }
.profile-pic {
    width: 40px; height: 40px;
    background: #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Panels & Cards */
.content-section { display: none; animation: fadeIn 0.4s ease; }
.content-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card .icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
}
.bg-red { background: var(--primary-red); }
.bg-yellow { background: var(--primary-yellow); color: #333 !important; }
.bg-dark { background: #333; }

.panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.status-controls {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.status-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.status-btn.green.active { background: #4caf50; color: white; border-color: #4caf50; }
.status-btn.yellow.active { background: var(--primary-yellow); color: #333; border-color: var(--primary-yellow); }
.status-btn.red.active { background: var(--primary-red); color: white; border-color: var(--primary-red); }

/* Forms */
.admin-form input, .admin-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    margin-bottom: 15px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-save {
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #ccc;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
}
.upload-zone i { font-size: 3rem; color: #ccc; margin-bottom: 10px; }

.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.upload-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }