:root {
    /* Construction Partners - Design System (Industrial Light) */
    --bg-primary: #f8f9fa;      /* Clean White/Grey */
    --bg-secondary: #ffffff;    /* Pure White for Cards */
    --bg-tertiary: #e9ecef;     /* Sand/Concrete Grey */
    
    --text-primary: #212529;    /* Steel Dark */
    --text-secondary: #495057;  /* Muted Grey */
    --text-muted: #adb5bd;      /* Light Muted */
    
    --accent: #f1c40f;          /* Construction Yellow */
    --accent-dark: #d4ac0d;
    --accent-glow: rgba(241, 196, 15, 0.3);
    
    --sky-blue: #3498db;        /* Sky Blue */
    --steel: #6c757d;           /* Steel Grey */
    --success: #27ae60;
    --danger: #e74c3c;
    
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)),
        url('https://www.transparenttextures.com/patterns/cubes.png'); /* Subtle architectural texture */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1, h2, h3 { 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
    margin-top: 0;
}

/* Cards & Layout */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 4px solid var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 var(--accent-dark);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 6px 0 #b7950b;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 transparent;
}

.btn-secondary {
    background: var(--steel);
    color: #fff;
    box-shadow: 0 4px 0 #545b62;
}

/* Auth Forms */
.auth-container {
    max-width: 450px;
    margin: 100px auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

/* Dashboard Elements */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--steel);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
}

/* Timer Panel (Zentrale) */
.timer-panel {
    background: #212529; /* Dark Steel for the control panel vibe */
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 6px solid var(--accent);
}

.timer-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-badge {
    background: var(--accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
}

/* Tabs System */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}
.tab-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.tab-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 0 var(--accent-dark);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- PREMIUM DASHBOARD HEADER --- */
.dashboard-header {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 4px solid var(--accent);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    font-size: 2.2rem;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.company-info h1 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: #fff;
}

.level-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-top: 4px;
}

.dashboard-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 160px;
}

.stat-pill .icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.stat-pill .data {
    display: flex;
    flex-direction: column;
}

.stat-pill .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
}

.stat-pill .value {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-link {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.action-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.action-link.admin {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- PREMIUM UI COMPONENTS --- */
.premium-card {
    background: #24282b; /* Slightly lighter than header for depth */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    overflow: hidden;
    color: #fff;
}

.premium-card-header {
    background: rgba(255,255,255,0.02);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.premium-card-body {
    padding: 2rem;
}

/* NAV GRID / CARDS */
.nav-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.nav-card {
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.nav-card .icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.nav-card .title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-card .desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.nav-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-card:hover::after {
    width: 100%;
}

.nav-card.main-action {
    background: var(--accent);
    border: none;
}

.nav-card.main-action .title, .nav-card.main-action .desc {
    color: #000;
}

.nav-card.main-action:hover {
    background: var(--accent-dark);
}

/* HUD / STATUS MONITOR */
.status-hud {
    background: #1a1c1e;
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 6px solid var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    color: #fff;
}

.status-hud h3 {
    margin-top: 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--accent);
}

.hud-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.hud-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 800;
}

.hud-value {
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
}

/* FOOTER MOTO */
.footer-moto {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0.6;
}

.footer-moto p {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.1rem;
}

/* --- PROVIDER & REPUTATION HUD --- */
.provider-rack {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hud-gauge-container {
    margin-top: 5px;
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.hud-gauge-fill {
    height: 100%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.hud-gauge-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
}

.active-partner-glow {
    border-color: var(--success) !important;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.2) !important;
}

.provider-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 180px;
}

.provider-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s;
}

.provider-hud-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.dot-active { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-inactive { background: var(--text-muted); }

/* --- STORAGE & LOGISTICS HUD --- */
.storage-category-title {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.storage-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.tank-indicator {
    height: 14px;
    background: rgba(0,0,0,0.4);
    border-radius: 7px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
}

.tank-fill-segment {
    height: 100%;
    transition: width 0.8s ease-out;
    position: relative;
}

.tank-fill-segment::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}

/* Specific glows for material qualities */
.tank-fill-budget { background: #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }
.tank-fill-standard { background: #3498db; box-shadow: 0 0 10px rgba(52, 152, 219, 0.4); }
.tank-fill-premium { background: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.tank-fill-diesel { background: #e67e22; box-shadow: 0 0 10px rgba(230, 126, 34, 0.4); }

.quality-sub-pill {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.quality-sub-pill .q-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.5;
    margin-bottom: 3px;
}

.quality-sub-pill .q-val {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 0.9rem;
}

.storage-upgrade-area {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
