/* ==================== BASE ==================== */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #e8ecf1, #f7f9fb);
    margin: 0;
    padding: 10px 20px;
    color: #333;
}

h1 {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* ==================== CARDS / BOX ==================== */
.box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.box h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 20px;
    font-weight: 600;
}

.box-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==================== GRID PRINCIPAL ==================== */
.layout-container {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    grid-template-rows: 0.7fr 2fr;
    gap: 10px;
    min-height: 85vh;
}

.top-left { grid-area: 1 / 1; }
.bottom-left { grid-area: 2 / 1; }
.top-right { grid-area: 1 / 2; }

/* ========== NOVA ÁREA COM DUAS METADES ========== */
.bottom-right-row {
    grid-area: 2 / 2;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* METADE / METADE */
    gap: 10px;
}

.bottom-right-map { grid-column: 1; }
.bottom-right-angstrom { grid-column: 2; }

/* ==================== CALENDAR NAV ==================== */
.cal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cal-header button {
    padding: 6px 10px;
    border: none;
    background: #d7dce3;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.cal-header button:hover {
    background: #c2c7ce;
}

#calTitle {
    font-weight: bold;
    font-size: 16px;
    color: #2d3e50;
}

/* ==================== CALENDÁRIO ==================== */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 45px);
    gap: 6px;
    justify-content: center;
}

#calendar div {
    text-align: center;
    padding: 9px 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    font-size: 14px;
}

#calendar .header {
    font-weight: bold;
    background: #dfe4ea;
    cursor: default;
    font-size: 13px;
}

#calendar .day:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
}

#calendar .selected {
    border: 2px solid #34495e;
    font-weight: bold;
}

/* Cores */
.hist { background: #a9ceff; }
.forecast { background: #c6f0d0; }
.both { background: #ffd9b3; }

/* ==================== TABELA ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

table th, table td {
    text-align: center;
}

table th {
    background: #e0e3e6;
    padding: 10px 6px;
    font-weight: 600;
}

table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e2e2e2;
}

table tr:nth-child(even) {
    background: #fafafa;
}

table tr:hover {
    background: #f0f4f7;
}

/* ==================== MAPA ==================== */
.placeholder {
    background: #dfe2e6;
    height: 320px;
    width: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555;
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* ==================== ANGSTROM ==================== */

.bottom-right-angstrom img {
    width: 100%;
}

/* ==================== SELECT ==================== */
select {
    width: 90%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 14px;
    transition: border 0.2s ease;
}

select:focus {
    border-color: #2c3e50;
    outline: none;
}
