* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s infinite linear;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Glass morphism container */
.glass-container {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(67, 206, 162, 0.12) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header styling */
.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.901);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Search form styling */
.search-form {
    margin-bottom: 2rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    outline: none;
    color: white;
}

.search-btn {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    border: none;
    border-radius: 15px;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #185a9d, #43cea2);
}

.search-btn:active {
    transform: translateY(0);
}

/* Weather card styling */
.weather-card {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(67, 206, 162, 0.12) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.city-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.weather-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.temperature {
    color: white;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.detail-item {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15) 0%, rgba(67, 206, 162, 0.10) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25) 0%, rgba(67, 206, 162, 0.18) 100%);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Loading and error states */
.loading {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 2rem;
}

.loading i {
    animation: spin 1s linear infinite;
    font-size: 2rem;
    margin-bottom: 1rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.error {
    background: linear-gradient(120deg, rgba(255, 82, 82, 0.25) 0%, rgba(255, 255, 255, 0.10) 100%);
    border: 1px solid rgba(255, 82, 82, 0.4);
    border-radius: 15px;
    color: white;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .glass-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .temperature {
        font-size: 3rem;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .weather-details {
        grid-template-columns: 1fr;
    }

    .search-btn {
        margin-top: 0.5rem;
    }

    .row.g-2>div {
        margin-bottom: 0.5rem;
    }
}

/* Hidden class for initial state */
.hidden {
    display: none;
}