:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --acc-primary: #3b82f6;
    /* Blue 500 */
    --acc-hover: #2563eb;
    --acc-success: #10b981;
    /* Emerald 500 */
    --acc-success-hover: #059669;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background animated shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #4338ca;
    /* Indigo */
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #0d9488;
    /* Teal */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: #be185d;
    /* Pink */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    z-index: 10;
    margin: auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Form and UI Elements */
.fuel-selector {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

select:focus {
    border-color: var(--acc-primary);
}

select option {
    background: var(--bg-color);
    color: white;
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--acc-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
    background: var(--acc-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.primary-btn:active {
    transform: translateY(1px);
}

.primary-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-msg {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 1.2rem;
}

/* Results Section */
.result-card {
    margin-top: 1.5rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Skeleton Loading */
.skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

.skeleton-line.title {
    width: 60%;
    height: 30px;
}

.skeleton-line.subtitle {
    width: 80%;
}

.skeleton-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 1rem 0;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Slider Styles */
.slider-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    margin-top: 5px;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--acc-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: transform 0.2s;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Actual Result List */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.station-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
}

.station-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.station-card.top-1 {
    border-color: rgba(250, 204, 21, 0.3); /* Yellow border for #1 */
    background: rgba(250, 204, 21, 0.02);
}

.rank-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fde047, #eab308);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #fed7aa, #f97316);
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.price-info {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    color: var(--acc-success);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.unit {
    font-size: 1.1rem;
    opacity: 0.8;
}

.distance-info {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.station-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: white;
}

.address {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.maps-btn {
    background: rgba(16, 185, 129, 0.15);
    color: var(--acc-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.maps-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.share-btn {
    background: rgba(59, 130, 246, 0.15);
    color: var(--acc-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.share-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}