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

body {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    font-family: Arial, sans-serif;
    padding: 50px 20px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitulo {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 16px;
}

.busca {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #4facfe;
}

button {
    padding: 12px 24px;
    background-color: #4facfe;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3b8fd3;
}

#loading {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 20px;
}

#resultado {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.clima-icon {
    font-size: 80px;
    margin: 20px 0;
}

.temperatura {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.cidade {
    font-size: 28px;
    color: #666;
    margin-bottom: 10px;
}

.descricao {
    font-size: 20px;
    color: #999;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.detalhes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.detalhe-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.detalhe-item strong {
    display: block;
    color: #4facfe;
    margin-bottom: 5px;
}

.erro {
    background-color: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
}
