:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --success-bg: #dcfce7;
    --success-text: #16a34a;
    --error-bg: #fee2e2;
    --error-text: #dc2626;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-color); color: var(--text-main);
    margin: 0; padding: 0; display: flex; flex-direction: column;
    align-items: center; min-height: 100vh; overflow-x: hidden; position: relative;
}

/* Floating Elements */
.bg-shape { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; animation: float 10s infinite alternate ease-in-out; }
.shape1 { width: 350px; height: 350px; background: rgba(79, 70, 229, 0.25); top: -50px; left: -100px; }
.shape2 { width: 400px; height: 400px; background: rgba(236, 72, 153, 0.2); bottom: -100px; right: -100px; animation-delay: -5s; }

@keyframes float { 0% { transform: translateY(0px) scale(1); } 100% { transform: translateY(40px) scale(1.1); } }

/* Lang Switcher */
.lang-switcher { position: absolute; top: 15px; right: 20px; z-index: 100; animation: fadeInDown 0.5s ease-out; }
.lang-switcher select {
    padding: 6px 12px; border-radius: 8px; border: 2px solid rgba(79, 70, 229, 0.2);
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); font-weight: 600;
    color: var(--primary); outline: none; cursor: pointer; transition: all 0.3s ease;
}
.lang-switcher select:focus, .lang-switcher select:hover { border-color: var(--primary); }

/* Navbar */
.navbar { width: 100%; padding: 4rem 0 1rem 0; text-align: center; }
.navbar h1 {
    margin: 0; font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.6s ease-out;
}

/* Nav Tabs */
.dashboard-nav {
    display: flex; gap: 10px; justify-content: center; padding: 10px; flex-wrap: wrap; margin-bottom: 20px; animation: fadeIn 0.8s ease-out;
}
.nav-btn {
    background: white; color: var(--text-muted); border: 2px solid transparent; padding: 10px 20px;
    border-radius: 50px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.nav-btn:hover { transform: translateY(-2px); color: var(--primary); }
.nav-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.3);
}

/* Main Container */
.container {
    width: 92%; max-width: 650px; background: var(--card-bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.5); 
    padding: 2.5rem; border-radius: 24px; box-shadow: var(--shadow-lg); 
    text-align: center; margin-bottom: 40px; animation: slideUpFade 0.6s ease-out;
}
.header-text h2 { margin: 0 0 5px 0; font-size: 1.8rem; }
.header-text p { color: var(--text-muted); margin: 0; }

.hidden { display: none !important; }

/* Section 1: QR Portal Elements */
.portal-cards { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.portal-card {
    background: #ffffff; border: 1px solid #e2e8f0; padding: 25px;
    border-radius: 20px; text-align: center; transition: all 0.3s ease;
}
.portal-card:hover { border-color: var(--primary); box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.1); }
.portal-card h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: var(--text-main); }
.portal-card p { margin: 0 0 20px 0; font-size: 0.95rem; color: var(--text-muted); }

/* Swapped Action Buttons */
.action-btn {
    display: inline-block; width: 100%; padding: 15px; border-radius: 12px;
    text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-secondary:hover { background: #e2e8f0; transform: translateY(-2px); }

/* SEO Paragraph */
.seo-paragraph {
    margin-top: 25px; font-size: 0.85rem; color: var(--text-muted);
    text-align: justify; line-height: 1.6; padding: 15px;
    background: rgba(255,255,255,0.5); border-radius: 12px; border: 1px dashed #cbd5e1;
}
.seo-paragraph strong { color: var(--text-main); font-weight: 700; }

/* Section 2: Fuel Checker Elements */
.input-group { margin: 30px 0; }
input[type="number"] {
    width: 220px; font-size: 2.5rem; font-weight: 700; padding: 15px; text-align: center;
    border: 3px solid #e2e8f0; border-radius: 16px; color: var(--primary); background: #f8fafc;
    transition: all 0.3s ease; outline: none; letter-spacing: 4px;
}
input[type="number"]:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.15); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; padding: 18px 40px;
    font-size: 1.2rem; font-weight: 700; border-radius: 16px; cursor: pointer; width: 100%; transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4);
}
.search-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -5px rgba(236, 72, 153, 0.5); }

.privacy-note {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 25px; padding: 12px;
    background: rgba(255,255,255,0.6); border-radius: 12px; font-size: 0.85rem; color: var(--text-muted); border: 1px dashed #cbd5e1;
}

#result-area { margin-top: 40px; }
.status-card { padding: 25px; border-radius: 20px; margin-bottom: 30px; }
.status-yes { background-color: var(--success-bg); border: 2px solid #bbf7d0; }
.status-yes .status-big { color: var(--success-text); }
.status-no { background-color: var(--error-bg); border: 2px solid #fecaca; }
.status-no .status-big { color: var(--error-text); }
.status-big { font-size: 2rem; font-weight: 800; margin-bottom: 5px; line-height: 1.2; }
#today-subtext { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-muted); }

/* The new inline date */
.result-date {
    display: inline-block; font-size: 1rem; font-weight: 700; color: var(--primary);
    margin-top: 15px; padding: 8px 18px; background: rgba(255,255,255,0.6);
    border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.upcoming-title { font-size: 1.4rem; color: var(--text-main); margin: 0 0 5px 0; }
.click-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; }

.date-card {
    background: white; border: 2px solid #f1f5f9; padding: 15px 10px; border-radius: 16px;
    text-decoration: none; display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease; position: relative;
}
.date-card .day { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.date-card .date { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; text-align: center; }
.date-card .add-cal { margin-top: 10px; font-size: 0.75rem; background: var(--bg-color); padding: 5px 12px; border-radius: 20px; color: var(--text-main); font-weight: 600; transition: all 0.3s ease; }
.date-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.2); }
.date-card:hover .add-cal { background: var(--primary); color: white; }

/* Animations & Mobile */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 600px) {
    .lang-switcher { top: 10px; right: 10px; }
    .navbar { padding: 4.5rem 0 0.5rem 0; }
    .container { padding: 1.5rem; width: 95%; border-radius: 20px; }
    .navbar h1 { font-size: 1.5rem; }
    .header-text h2 { font-size: 1.4rem; }
    input[type="number"] { font-size: 2rem; width: 180px; }
    .status-big { font-size: 1.5rem; }
    .dates-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .date-card { padding: 12px 5px; }
    .date-card .date { font-size: 1.3rem; }
}