/* ===== MAIN CONTENT ===== */
.main-content {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== TÍTULOS ===== */
.main-content h1,
.main-content h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* ===== CONTROLES ===== */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.controls label {
    font-weight: 500;
}

.controls input,
.controls select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== BOTÕES ===== */
.controls button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background-color: #36A2EB;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.controls button:hover {
    background-color: #2a82c9;
}


/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.layout {
    display: flex;
    flex-direction: column;
}

.main-content.with-topbar {
    padding-top: 30px; /* espaço para a topbar */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
}






