:root {
    --gold: #FFB703;
    --dark: #050505;
    --gray: #121212;
    --card-bg: #1a1a1a;
    --border: #333;
    --text: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --blue: #007bff;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/web_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* Typography */
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
}

.text-gold {
    color: var(--gold);
}

.section-title {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.btn {
    background: var(--gold);
    color: #000;
    padding: 12px 20px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    width: 100%;
}

.btn:hover {
    background: #fff;
}

.btn-small {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-small:hover {
    background: #444;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* Layout */
.grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

/* Task Item Styling */
.task-item {
    background: #232323;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #888;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-Pending {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
}

.status-Submitted {
    background: rgba(0, 123, 255, 0.2);
    color: #66b0ff;
    border: 1px solid rgba(0, 123, 255, 0.4);
}

.status-Approved {
    background: rgba(40, 167, 69, 0.2);
    color: #75d69c;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.status-Changes {
    background: rgba(220, 53, 69, 0.2);
    color: #ff8fa3;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.feedback-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--danger);
    font-size: 0.85rem;
}

/* Leaderboard */
.leader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.rank {
    font-weight: 700;
    color: #555;
    width: 30px;
}

.rank-1 {
    color: var(--gold);
}

.rank-2 {
    color: silver;
}

.rank-3 {
    color: #cd7f32;
}

/* Filter Tabs */
.task-filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Header */
header {
    background: #0a0a0a;
    padding: 15px 30px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gold);
}

.header-logo {
    height: 35px;
}

/* Login */
#login-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.login-box {
    width: 350px;
    text-align: center;
    padding: 40px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #222;
    color: #fff;
    padding: 15px 25px;
    margin-top: 10px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

/* Loader */
/* Smooth Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a, #000);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader-logo-container {
    margin-bottom: 30px;
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo-container img {
    width: 100%;
    height: auto;
    animation: goldPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.3));
}

.loader-progress-track {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
    animation: stableProgress 2s infinite ease-in-out;
}

@keyframes stableProgress {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

@keyframes goldPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 183, 3, 0.5)); }
    100% { transform: scale(0.95); opacity: 0.9; }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}