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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1e90ff;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="email"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.location-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    color: #666;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f8ff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#use-location-btn {
    background-color: #2ecc71;
    color: white;
}

#use-location-btn:hover {
    background-color: #27ae60;
}

#use-location-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#check-weather-btn {
    background-color: #9b59b6;
    color: white;
}

#check-weather-btn:hover {
    background-color: #8e44ad;
}

button[type="submit"] {
    background-color: #1e90ff;
    color: white;
}

button[type="submit"]:hover {
    background-color: #0d7dda;
}

#add-location-btn {
    background-color: #3498db;
    color: white;
    flex: unset;
    padding: 8px 12px;
    font-size: 0.9rem;
}

#add-location-btn:hover {
    background-color: #2980b9;
}

.tracked-locations-section {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.tracked-locations-section h3 {
    margin-bottom: 10px;
    color: #1e90ff;
}

.tracked-locations-section ul {
    list-style-type: none;
    padding: 0;
}

.tracked-locations-section li {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracked-locations-section li:last-child {
    border-bottom: none;
}

.remove-location-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-location-btn:hover {
    background-color: #c0392b;
}

#message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-message {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}