.container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.weather-controls {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.weather-controls select {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    min-width: 200px;
}

.weather-card {
    border-radius: 30px;
    padding: 30px 38px;
    width: 500px;
    height: 180px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Background untuk setiap kondisi */
.weather-card.sunny {
    background: linear-gradient(135deg, #fdb863 0%, #fee08b 100%);
}

.weather-card.cloudy {
    background: linear-gradient(135deg, #8fb5e1 0%, #b8d4ed 100%);
}

.weather-card.overcast {
    background: linear-gradient(135deg, #6b7a8f 0%, #8b96a8 100%);
}

.weather-card.rainy {
    background: linear-gradient(135deg, #546e7a 0%, #78909c 100%);
}

.weather-card.stormy {
    background: linear-gradient(135deg, #37474f 0%, #546e7a 100%);
}

.weather-card.night {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.weather-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.weather-card::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.weather-content {
    position: relative;
    z-index: 2;
}

.temperature {
    font-size: 72px;
    font-weight: 200;
    color: white;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -2px;
}

.degree {
    font-size: 36px;
    vertical-align: top;
    font-weight: 300;
    opacity: 0.95;
}

.weather-status {
    font-size: 22px;
    color: white;
    margin: 8px 0 4px 0;
    font-weight: 400;
    opacity: 0.95;
}

.location-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Icon Container */
.weather-icon-container {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 140px;
    z-index: 1;
}

/* Matahari */
.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #fff176;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 35px rgba(255, 241, 118, 0.6);
    animation: rotate 20s linear infinite;
}

.sun-ray {
    position: absolute;
    width: 5px;
    height: 20px;
    background: #fff176;
    top: 50%;
    left: 50%;
    transform-origin: center;
    border-radius: 10px;
}

.sun-ray:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-48px);
}
.sun-ray:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-48px);
}
.sun-ray:nth-child(3) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-48px);
}
.sun-ray:nth-child(4) {
    transform: translate(-50%, -50%) rotate(135deg) translateY(-48px);
}
.sun-ray:nth-child(5) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-48px);
}
.sun-ray:nth-child(6) {
    transform: translate(-50%, -50%) rotate(225deg) translateY(-48px);
}
.sun-ray:nth-child(7) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-48px);
}
.sun-ray:nth-child(8) {
    transform: translate(-50%, -50%) rotate(315deg) translateY(-48px);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Bulan */
.moon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: #f5f5dc;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 35px rgba(245, 245, 220, 0.5);
}

.moon::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #e8e8d0;
    border-radius: 50%;
    top: 15px;
    left: 18px;
}

.moon::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    background: #e8e8d0;
    border-radius: 50%;
    bottom: 18px;
    right: 15px;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star:nth-child(2) {
    top: 20%;
    left: 20%;
    animation-delay: 0.5s;
}
.star:nth-child(3) {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}
.star:nth-child(4) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1.5s;
}
.star:nth-child(5) {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.3s;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Awan */
.cloud {
    position: absolute;
    border-radius: 100px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

.cloud.white {
    background: white;
}

.cloud.gray {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.cloud.dark {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.cloud-main {
    width: 105px;
    height: 65px;
    top: 48px;
    left: 40px;
    animation: float 6s ease-in-out infinite;
}

.cloud-top {
    width: 72px;
    height: 52px;
    top: 24px;
    left: 65px;
    animation: float 6s ease-in-out infinite 0.5s;
}

.cloud-left {
    width: 52px;
    height: 42px;
    top: 40px;
    left: 20px;
    animation: float 6s ease-in-out infinite 1s;
}

.cloud-right {
    width: 62px;
    height: 46px;
    top: 38px;
    left: 100px;
    animation: float 6s ease-in-out infinite 1.5s;
}

.cloud-small-1 {
    width: 38px;
    height: 30px;
    top: 34px;
    left: 85px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite 2s;
}

.cloud-small-2 {
    width: 42px;
    height: 32px;
    top: 58px;
    left: 55px;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite 2.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hujan */
.rain-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(
        to bottom,
        rgba(174, 194, 224, 0.6),
        rgba(174, 194, 224, 0.2)
    );
    border-radius: 50px;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(300px);
        opacity: 0;
    }
}

.raindrop:nth-child(1) {
    left: 10%;
    animation-duration: 0.8s;
    animation-delay: 0s;
}
.raindrop:nth-child(2) {
    left: 20%;
    animation-duration: 0.9s;
    animation-delay: 0.2s;
}
.raindrop:nth-child(3) {
    left: 30%;
    animation-duration: 0.7s;
    animation-delay: 0.4s;
}
.raindrop:nth-child(4) {
    left: 40%;
    animation-duration: 0.85s;
    animation-delay: 0.1s;
}
.raindrop:nth-child(5) {
    left: 50%;
    animation-duration: 0.95s;
    animation-delay: 0.3s;
}
.raindrop:nth-child(6) {
    left: 60%;
    animation-duration: 0.75s;
    animation-delay: 0.5s;
}
.raindrop:nth-child(7) {
    left: 70%;
    animation-duration: 0.8s;
    animation-delay: 0.15s;
}
.raindrop:nth-child(8) {
    left: 80%;
    animation-duration: 0.9s;
    animation-delay: 0.35s;
}
.raindrop:nth-child(9) {
    left: 15%;
    animation-duration: 0.85s;
    animation-delay: 0.6s;
}
.raindrop:nth-child(10) {
    left: 25%;
    animation-duration: 0.7s;
    animation-delay: 0.25s;
}
.raindrop:nth-child(11) {
    left: 35%;
    animation-duration: 0.95s;
    animation-delay: 0.45s;
}
.raindrop:nth-child(12) {
    left: 45%;
    animation-duration: 0.8s;
    animation-delay: 0.05s;
}
.raindrop:nth-child(13) {
    left: 55%;
    animation-duration: 0.75s;
    animation-delay: 0.55s;
}
.raindrop:nth-child(14) {
    left: 65%;
    animation-duration: 0.9s;
    animation-delay: 0.2s;
}
.raindrop:nth-child(15) {
    left: 75%;
    animation-duration: 0.85s;
    animation-delay: 0.4s;
}
.raindrop:nth-child(16) {
    left: 85%;
    animation-duration: 0.7s;
    animation-delay: 0.1s;
}
.raindrop:nth-child(17) {
    left: 90%;
    animation-duration: 0.95s;
    animation-delay: 0.3s;
}
.raindrop:nth-child(18) {
    left: 5%;
    animation-duration: 0.8s;
    animation-delay: 0.5s;
}
.raindrop:nth-child(19) {
    left: 95%;
    animation-duration: 0.75s;
    animation-delay: 0.15s;
}
.raindrop:nth-child(20) {
    left: 12%;
    animation-duration: 0.9s;
    animation-delay: 0.35s;
}

/* Petir */
.lightning {
    position: absolute;
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #fff59d, #ffee58, transparent);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: flash 4s infinite;
    filter: drop-shadow(0 0 10px #fff59d);
}

.lightning::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 15px solid #fff59d;
    top: -5px;
    left: -4px;
}

.lightning::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 15px solid #ffee58;
    bottom: -10px;
    left: -4px;
}

@keyframes flash {
    0%,
    10%,
    20%,
    100% {
        opacity: 0;
    }
    5%,
    15% {
        opacity: 1;
    }
}

.weather-details {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    color: white;
    opacity: 0.85;
}

.detail-label {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .weather-card {
        width: 80%;
        max-width: 500px;
        padding: 25px 28px;
        border-radius: 25px;
        height: 100px !important;
    }

    .temperature {
        font-size: 600px !important;
        position: relative;
        top: -40px;
    }

    .degree {
        font-size: 30px !important;
        position: relative;
        top: -11px;
    }

    .weather-status {
        font-size: 18px;
        margin: 6px 0 3px 0;
        position: relative;
        top: -45px;
    }

    .location-time {
        font-size: 11px;
        position: relative;
        top: -40px;
    }

    .weather-icon-container {
        width: 140px;
        height: 110px;
        right: 20px;
    }

    .sun {
        width: 65px;
        height: 65px;
    }

    .sun-ray {
        width: 4px;
        height: 16px;
    }

    .sun-ray:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-38px);
    }
    .sun-ray:nth-child(2) {
        transform: translate(-50%, -50%) rotate(45deg) translateY(-38px);
    }
    .sun-ray:nth-child(3) {
        transform: translate(-50%, -50%) rotate(90deg) translateY(-38px);
    }
    .sun-ray:nth-child(4) {
        transform: translate(-50%, -50%) rotate(135deg) translateY(-38px);
    }
    .sun-ray:nth-child(5) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-38px);
    }
    .sun-ray:nth-child(6) {
        transform: translate(-50%, -50%) rotate(225deg) translateY(-38px);
    }
    .sun-ray:nth-child(7) {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-38px);
    }
    .sun-ray:nth-child(8) {
        transform: translate(-50%, -50%) rotate(315deg) translateY(-38px);
    }

    .moon {
        width: 55px;
        height: 55px;
    }

    .moon::before {
        width: 8px;
        height: 8px;
        top: 12px;
        left: 14px;
    }

    .moon::after {
        width: 10px;
        height: 10px;
        bottom: 14px;
        right: 12px;
    }

    .cloud-main {
        width: 84px;
        height: 52px;
        top: 38px;
        left: 32px;
    }

    .cloud-top {
        width: 58px;
        height: 42px;
        top: 19px;
        left: 52px;
    }

    .cloud-left {
        width: 42px;
        height: 34px;
        top: 32px;
        left: 16px;
    }

    .cloud-right {
        width: 50px;
        height: 37px;
        top: 30px;
        left: 80px;
    }

    .cloud-small-1 {
        width: 30px;
        height: 24px;
        top: 27px;
        left: 68px;
    }

    .cloud-small-2 {
        width: 34px;
        height: 26px;
        top: 46px;
        left: 44px;
    }

    .weather-details {
        gap: 12px;
        margin-top: 10px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 12px;
    }

    .weather-controls {
        padding: 15px 20px;
    }

    .weather-controls select {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .weather-card {
        max-width: 100%;
        padding: 20px 22px;
        height: 140px;
    }

    .temperature {
        font-size: 48px;
    }

    .degree {
        font-size: 26px;
    }

    .weather-status {
        font-size: 16px;
        margin: 5px 0 2px 0;
    }

    .location-time {
        font-size: 10px;
    }

    .weather-icon-container {
        width: 110px;
        height: 90px;
        right: 15px;
    }

    .sun {
        width: 50px;
        height: 50px;
    }

    .sun-ray {
        width: 3px;
        height: 13px;
    }

    .sun-ray:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-30px);
    }
    .sun-ray:nth-child(2) {
        transform: translate(-50%, -50%) rotate(45deg) translateY(-30px);
    }
    .sun-ray:nth-child(3) {
        transform: translate(-50%, -50%) rotate(90deg) translateY(-30px);
    }
    .sun-ray:nth-child(4) {
        transform: translate(-50%, -50%) rotate(135deg) translateY(-30px);
    }
    .sun-ray:nth-child(5) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-30px);
    }
    .sun-ray:nth-child(6) {
        transform: translate(-50%, -50%) rotate(225deg) translateY(-30px);
    }
    .sun-ray:nth-child(7) {
        transform: translate(-50%, -50%) rotate(270deg) translateY(-30px);
    }
    .sun-ray:nth-child(8) {
        transform: translate(-50%, -50%) rotate(315deg) translateY(-30px);
    }

    .moon {
        width: 45px;
        height: 45px;
    }

    .moon::before {
        width: 6px;
        height: 6px;
        top: 10px;
        left: 11px;
    }

    .moon::after {
        width: 8px;
        height: 8px;
        bottom: 11px;
        right: 10px;
    }

    .cloud-main {
        width: 68px;
        height: 42px;
        top: 31px;
        left: 26px;
    }

    .cloud-top {
        width: 46px;
        height: 34px;
        top: 15px;
        left: 42px;
    }

    .cloud-left {
        width: 34px;
        height: 27px;
        top: 26px;
        left: 13px;
    }

    .cloud-right {
        width: 40px;
        height: 30px;
        top: 24px;
        left: 64px;
    }

    .cloud-small-1 {
        width: 24px;
        height: 19px;
        top: 22px;
        left: 54px;
    }

    .cloud-small-2 {
        width: 27px;
        height: 21px;
        top: 37px;
        left: 35px;
    }

    .weather-details {
        gap: 10px;
        margin-top: 8px;
    }

    .detail-label {
        font-size: 9px;
    }

    .detail-value {
        font-size: 11px;
    }

    .weather-controls {
        padding: 12px 16px;
    }

    .weather-controls label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .weather-controls select {
        width: 100%;
        min-width: unset;
        padding: 8px 12px;
        font-size: 13px;
    }
}
