/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title h1 { font-size: 28px; font-weight: 600; }
.page-title p { color: #7f8c8d; font-size: 14px; margin-top: 5px; }

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-primary:hover { background-color: #c0392b; }

/* --- Cards --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-title { font-weight: bold; color: #2c3e50; }

/* --- Tabela --- */
.table-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #7f8c8d; font-size: 13px; padding: 15px; border-bottom: 1px solid #eee; }
td { padding: 15px; border-bottom: 1px solid #f5f5f5; font-size: 14px; color: #2c3e50; }
tr:last-child td { border-bottom: none; }

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.status-pago { background: #dff9fb; color: #2ecc71; }
.status-pendente { background: #fff3cd; color: #f1c40f; }
.status-atrasado { background: #ffcccc; color: #e74c3c; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: #aaa;
}

/* --- Form Grid --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-group { margin-bottom: 15px; }
.form-group.full-width { grid-column: span 2; }

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: #636e72; }
input, select, textarea {
    width: 100%; padding: 10px;
    border: 1px solid #dfe6e9; border-radius: 8px;
    font-size: 14px; background: #f9f9f9;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent-green); background: white;
}

.btn-submit {
    width: 100%;
    background: var(--accent-green);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
