/* ═══════════════════════════════════════════════════════════════════
   ETEL MADEYA - DRIVER INTERFACE STYLES (GOLDEN THEME)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Aligned to etel-premium.css's --ep-gold family (loaded last on
       every page) via var() with a matching fallback, so this legacy
       token namespace and the premium layer's --ep-* tokens always
       resolve to the same gold - not two different hex values rendered
       simultaneously depending on which selector happened to use which
       namespace. */
    --primary: var(--ep-gold, #D4AF37);
    --primary-dark: var(--ep-gold-dim, #B8941E);
    --gold: var(--ep-gold-light, #F5CC44);
    --bronze: #cd7f32;
    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;
    --dark: #1a1a1a;
    --dark-brown: #2d2416;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --border: var(--ep-gold, #D4AF37);
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Ethiopic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 50%, #1a1a1a 100%);
    color: var(--white);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Sparkling background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(212, 160, 23, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(212, 160, 23, 0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: sparkle 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ─── TOPBAR ──────────────────────────────────────────────────────── */
.topbar {
    background: rgba(26, 26, 26, 0.95);
    color: var(--gold);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--primary);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bronze) 100%);
    border: 1px solid var(--gold);
    color: var(--white);
    padding: 4px 12px;
    min-height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.admin-link {
    color: var(--gold);
    text-decoration: none;
    opacity: 0.9;
    font-weight: 600;
}

.admin-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.8);
}

/* ─── HEADER ──────────────────────────────────────────────────────── */
.header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 36, 22, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.5);
}

.logo-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
}

.logo-sub {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gold);
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    border-bottom-color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.8);
}

/* ─── MAIN CONTENT ────────────────────────────────────────────────── */
main {
    min-height: 60vh;
    padding: 40px 0;
}

.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.page-subtitle {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
}

/* ─── CARDS ───────────────────────────────────────────────────────── */
.card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 36, 22, 0.9) 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.2);
    margin-bottom: 20px;
    border: 1px solid var(--primary);
}

.card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 600;
}

/* ─── FORMS ───────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: rgba(26, 26, 26, 0.8);
    color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

.form-control::placeholder {
    color: rgba(212, 160, 23, 0.5);
}

select.form-control {
    cursor: pointer;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bronze) 100%);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #15803d 100%);
    color: var(--white);
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: linear-gradient(135deg, #15803d 0%, var(--success) 100%);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray) 0%, #4b5563 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, var(--gray) 100%);
}

.btn-block {
    width: 100%;
}

/* ─── POSITION RESULT ─────────────────────────────────────────────── */
.position-result {
    text-align: center;
    padding: 40px 20px;
}

.position-number {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(212, 160, 23, 0.5);
}

.position-label {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 30px;
}

.vehicle-info {
    background: rgba(212, 160, 23, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--primary);
}

.vehicle-info p {
    margin: 10px 0;
    font-size: 16px;
    color: var(--white);
}

.vehicle-info strong {
    color: var(--gold);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-warning {
    background: rgba(234, 88, 12, 0.2);
    border: 1px solid var(--warning);
    color: var(--gold);
}

.alert-success {
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid var(--success);
    color: #86efac;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 36, 22, 0.95) 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    margin-bottom: 15px;
    color: var(--gold);
}

.footer a {
    color: rgba(212, 160, 23, 0.8);
    text-decoration: none;
    display: block;
    margin: 8px 0;
}

.footer a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--primary);
}

/* ─── NOTIFICATION ────────────────────────────────────────────────── */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 36, 22, 0.95) 100%);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--primary);
    color: var(--white);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .logo-name {
        font-size: 20px;
    }
    
    .position-number {
        font-size: 56px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
