@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #010622, #000000);
    color: white;
    background-size: cover;
    background-position: center;
}

.container {
    /* Currency Dropdown Styling */
#currency {
    width: 100%;
    padding: 12px 15px;
    margin-top: 12px;
    margin-bottom: 20px;
    border: 2px solid #00ffcc;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #00ffcc;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Hover Effect */
#currency:hover {
    border-color: #00ffd5;
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.7);
}

/* Focus Effect */
#currency:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.9);
}

/* Dropdown Options */
#currency option {
    background: #000;
    color: #00ffcc;
    font-weight: bold;
}

/* Custom Dropdown Arrow */
.currency-wrapper {
    position: relative;
    width: 100%;
}

.currency-wrapper::after {
    content: "▼";
    font-size: 14px;
    color: #00ffcc;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    width: 90%;
    max-width: 460px;
    border-radius: 18px;
    border: 2px solid #00ffff;
    box-shadow:
        inset 0 0 12px #0d024b,
        inset 0 0 25px #16069e,
        0 0 25px rgba(0, 255, 255, 0.35);
    text-align: center;
    font-weight: bold;
    background: rgba(15, 15, 26, 0.88);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.container:hover {
    box-shadow:
        inset 0 0 15px #0d024b,
        inset 0 0 30px #16069e,
        0 0 35px rgba(0, 255, 255, 0.55);
}

h1 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 2.2em;
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 14px 15px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    background: #0f0f1a;
    color: white;
    outline: none;
    box-shadow:
        0 0 8px #00ffff,
        inset 0 0 5px rgba(0, 255, 255, 0.2);
    box-sizing: border-box;
    transition: 0.3s ease;
}

input:focus {
    box-shadow:
        0 0 12px #00ffff,
        0 0 20px #00ffff;
    transform: scale(1.02);
}

input::placeholder {
    color: #b0b0b0;
}
input:hover::placeholder {
    color: #d0d0d0;
}

button {
    width: 100%;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(45deg, #79dffc, #3586eb);
    color: white;
    letter-spacing: 0.8px;
    box-shadow:
        0 0 10px rgba(0, 198, 255, 0.5),
        0 0 20px rgba(0, 114, 255, 0.35);
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 15px rgba(0, 198, 255, 0.7),
        0 0 30px rgba(0, 114, 255, 0.5);
}

button:active {
    transform: scale(0.98);
}

button:active {
    transform: scale(0.98);
}

#result {
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 0 10px rgba(0, 255, 255, 0.2),
        0 0 15px rgba(0, 255, 255, 0.08);
    animation: fadeIn 0.4s ease;
}

#monthsLeft {
    font-size: 2em;
    margin: 10px 0;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}

#status {
    font-size: 1.2em;
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
    margin: 10px 0;
}

#daysLeft {
    font-size: 1em;
    color: #d0d0d0;
    margin-top: 8px;
}

/* SAFE */
.safe {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

/* WARNING */
.warning {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

/* DANGER */
.danger {
    color: #ff3b3b;
    text-shadow: 0 0 12px #ff0000;
}

/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.progress-container {
    width: 100%;
    height: 22px;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 18px;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

#progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
}

#progress-text {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

@media (max-width: 600px) {
    body {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        padding: 15px;
        align-items: flex-start;
        position: relative;
    }

    /* Dark overlay for readability while preserving background */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: -1;
    }

    .container {
        background: rgba(10, 10, 20, 0.78);
        backdrop-filter: blur(10px);
        box-shadow:
            inset 0 0 15px rgba(0, 255, 255, 0.12),
            0 0 25px rgba(0, 255, 255, 0.2);
    }

    #result {
        background: rgba(255, 255, 255, 0.08);
    }
}