:root {
    --blue-900: #0b2f4c;
    --blue-700: #0f5f9a;
    --blue-500: #1a8cd8;
    --blue-300: #7dc2f0;
    --blue-100: #e7f5ff;
    --card-bg: rgba(255, 255, 255, 0.94);
    --shadow: 0 10px 30px rgba(4, 34, 68, 0.15);
    --radius: 14px;
}

body {
    font-family: 'Tiro Gurmukhi', serif;
    background: linear-gradient(180deg, #e9f2fb 0%, #f6fbff 100%);
    color: #0f1c2e;
}

h1 {
    font-family: 'Oswald', sans-serif;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: #fff;
}
  
.background-image {
    background-image: image-set(
        url("../assets/Weather-Banner.webp") type("image/webp"),
        url("../assets/Weather-Banner.jpg") type("image/jpeg")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 360px;
    padding: 24px 0 18px;
    position: relative;
}

.form {
    background: linear-gradient(135deg, rgba(11, 47, 76, 0.95), rgba(15, 95, 154, 0.9));
    padding: 14px 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #e8f4ff;
}

.form-search {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.form-ask label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.form-ask input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.form-ask input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

#btn-search-city,
#btn-clear {
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 16px rgba(12, 76, 130, 0.35);
}

.btn-subscribe {
    width: auto;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 16px rgba(12, 76, 130, 0.35);
}

.btn-primary {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--blue-500);
    border-color: var(--blue-500);
}

#btn-clear {
    text-decoration: none;
    color: #0f1c2e;
    background: #f5fbff;
    border: 1px solid rgba(11, 47, 76, 0.25);
    margin-top: 8px;
}

#btn-clear:hover {
    color: #0b2f4c;
    background: #e1f0ff;
    border-color: rgba(11, 47, 76, 0.45);
}

#email {
    margin-bottom: 10px;
}

.history-part {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.city-list {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #f5fbff;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: left;
    transition: background 0.2s ease, transform 0.1s ease;
}

.city-list:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.weather {
    padding: 14px 0;
}

.today {
    text-align: left;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #dfeaf6;
}

.today h2 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 14px;
}

.current-weather h3 {
    color: var(--blue-700);
    font-weight: 800;
}

.city-name .location {
    color: var(--blue-700);
}

.today li {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.fiveday-forecast {
    gap: 14px;
}

#five-day-title {
    margin: 10px 10px 4px;
    font-weight: 700;
    color: var(--blue-700);
}

.card {
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fdfefe 0%, #eef6ff 100%);
    box-shadow: var(--shadow);
}

.card-body {
    padding: 14px;
}

.card-text {
    list-style-type: none;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-body li .card-text {
    list-style-type: none;
}

.weather-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sub {
    background: linear-gradient(135deg, #eef6ff 0%, #d8eaff 100%);
    padding: 16px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #10223a;
}

.sub h3 {
    color: var(--blue-700);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.sub p {
    color: #1c2f46;
    margin-bottom: 12px;
}

.sub label {
    color: #0f1c2e;
    font-weight: 700;
}

.subscribe-status {
    margin-top: 8px;
    font-weight: bold;
}

.subscribe-status.success {
    color: #0a5c2f;
}

.subscribe-status.error {
    color: #b30000;
}

.green, .yellow, .orange, .red, .violet {
    padding: 3px 5px;
    border-radius: 10px;
}

.green { background-color: green; }
.yellow { background-color: yellow; }
.orange { background-color: orange; }
.red { background-color: red; }
.violet { background-color: violet; }
