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

body {
    background-color: #0b0f19;
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lang-toggle {
    position: absolute;
    top: 20px;
    right: 24px;
    background: #111827;
    border: 1px solid #1f2937;
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    z-index: 100;
}

.lang-toggle:hover {
    color: #ffffff;
    border-color: #3b82f6;
    background: #1f2937;
}

.top-left-brand {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.atmo-badge {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}

.app-container {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.app-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.brand p {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.search-box {
    display: flex;
    gap: 8px;
    position: relative; /* Necessário para posicionar o dropdown de sugestões corretamente */
}

.search-box input {
    flex: 1;
    background-color: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #3b82f6;
}

.search-box button {
    background-color: #38bdf8;
    color: #0b0f19;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #0ea5e9;
}

.quick-cities {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-cities .city-tag {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-cities .city-tag:hover,
.quick-cities .city-tag.active {
    background-color: #38bdf8;
    color: #0b0f19;
    border-color: #38bdf8;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-search-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.recent-chips {
    display: flex;
    gap: 8px;
}

.chip {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.weather-card {
    background-color: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* Animação suave do ícone do clima */
.weather-cloud-icon {
    font-size: 2.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.location-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.temperature-display {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.weather-condition {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 280px;
}

.weather-metrics {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.metric-box {
    flex: 1;
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title {
    font-size: 0.75rem;
    color: #6b7280;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.app-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid #1f2937;
    padding-top: 16px;
}

.footer-links-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.separator {
    color: #4b5563;
}

.app-footer p {
    font-size: 0.7rem;
    color: #4b5563;
}

/* ==========================================
   ESTILOS ADICIONADOS PARA AS SUGESTÕES (DROPDOWN)
   ========================================== */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
}

.suggestion-item {
    padding: 10px 16px;
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #1f2937;
    transition: background-color 0.2s ease;
    text-align: left;
}

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

.suggestion-item:hover {
    background-color: #1f2937;
    color: #ffffff;
}