:root {
    --gold: #D4AF37;
    --silver: #C0C0C0;
    --black: #000000;
    --deep-red: #8B0000;
    --card-bg: #1a1a1a;
}

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

body { background-color: var(--black); color: #fff; font-family: sans-serif; padding-top: 70px; }

/* Header & Navigation */
header {
    position: fixed; top: 0; width: 100%; height: 60px;
    background: #1a1a1a; border-bottom: 2px solid var(--deep-red);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10px; z-index: 1000;
    overflow: hidden;
}

.logo-text { font-weight: bold; color: var(--gold); font-size: 14px; flex-shrink: 0; margin-right: 10px; }

.nav-links { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    overflow-x: auto; 
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

/* Button & Link Styles */
.nav-links a { 
    display: inline-block;
    padding: 8px 12px;
    background: #252525;
    border: 1px solid #444;
    color: var(--silver);
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-radius: 2px;
}

.nav-links a.active {
    border-bottom: 3px solid var(--gold);
    color: #fff;
}

.nav-links a:hover { 
    background: #333; 
    border-color: var(--gold); 
    color: #fff; 
}

.logout-btn { 
    border-color: var(--deep-red) !important; 
    color: var(--deep-red) !important;
}

.logout-btn:hover { background: var(--deep-red) !important; color: #fff !important; }

/* Card Grid Layout */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* UI Elements */
button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

button:hover { background: #444; }
button.primary { background: var(--deep-red); }
button.gold { background: var(--gold); color: #000; }

.progress-container { width: 100%; background: #000; height: 10px; border-radius: 5px; margin: 10px 0; }
.progress-fill { background: var(--gold); height: 100%; border-radius: 5px; }

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    background: #222;
    color: #fff;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}
.toast.error { border-left-color: var(--deep-red); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Modal Styles */
.modal-overlay, .modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center; align-items: center; z-index: 2000;
}
.modal-content {
    background: #1a1a1a; padding: 20px; border: 1px solid var(--gold);
    width: 90%; max-width: 400px; border-radius: 4px;
}
.modal-content input, .modal-content select {
    width: 100%; padding: 10px; margin: 10px 0;
    background: #000; border: 1px solid #444; color: #fff;
}