body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e0e7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.weather-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-sizing: border-box;
}

h2,
h3 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 20px;
}

.search-box,
.inputs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    width: 100%;
}

input:focus {
    border-color: #4f46e5;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

#searchBtn {
    background-color: #4f46e5;
    color: white;
}

#searchBtn:hover {
    background-color: #4338ca;
}

.save-btn {
    background-color: #fbbf24;
    color: #1f2937;
    width: 100%;
    margin-top: 10px;
}

.save-btn:hover {
    background-color: #f59e0b;
}

.action-btn {
    background-color: #111827;
    color: white;
    width: 100%;
}

.action-btn:hover {
    background-color: #374151;
}

.weather-info {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.hidden {
    display: none;
}

.favorites-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.fav-btn {
    background-color: #10b981;
    color: white;
    margin: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
}

.fav-btn:hover {
    background-color: #059669;
}

.divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

.comparison-section {
    text-align: center;
}

.comp-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    table-layout: fixed;
}

.comp-table th {
    background-color: #4f46e5;
    color: white;
    padding: 12px;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.comp-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    font-weight: 600;
    color: #374151;
    word-wrap: break-word;
}

.label-cell {
    color: #6b7280 !important;
    font-weight: normal !important;
    font-size: 0.8rem;
    background-color: #f9fafb;
    width: 80px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.hot-temp {
    color: #ef4444;
}

.cool-temp {
    color: #3b82f6;
}

@media (max-width: 500px) {
    .weather-card {
        padding: 1.5rem;
    }

    .search-box,
    .inputs-row {
        flex-direction: column;
        gap: 12px;
    }

    #searchBtn {
        width: 100%;
    }

    .comp-table th,
    .comp-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .label-cell {
        width: 55px;
        font-size: 0.75rem;
    }
}