:root {
    --bg: #111827;
    --sidebar: #1f2937;
    --card: #1e293b;
    --text: #f1f5f9;
    --primary: #3b82f6;
    --success: #22c55e;
    --danger: #ef4444;
}

body.light {
    --bg: #f4f6f9;
    --sidebar: #ffffff;
    --card: #ffffff;
    --text: #111;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: var(--sidebar);
    padding: 20px;
}

.sidebar a {
    display: block;
    padding: 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: var(--primary);
}

.content {
    margin-left: 260px;
    padding: 30px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #333;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    width: 400px;
}


/* ===== MODAL PROFISSIONAL ===== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    width: 450px;
    max-width: 95%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fadeIn 0.2s ease-in-out;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f172a;
    color: white;
    font-size: 14px;
}

body.light .modal-content input {
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
}

@keyframes fadeIn {
    from { opacity:0; transform: translateY(-10px); }
    to { opacity:1; transform: translateY(0); }
}


.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: 0.2s;
}

.metric-card:hover {
    transform: translateY(-3px);
}

.metric-card h4 {
    margin: 0;
    opacity: 0.8;
}

.metric-card h2 {
    margin: 10px 0 0;
    font-size: 32px;
}

.metric-card.success {
    border-left: 4px solid #22c55e;
}

.metric-card.danger {
    border-left: 4px solid #ef4444;
}

.metric-card.warning {
    border-left: 4px solid #f59e0b;
}

.page-container{
    max-width:1200px;
    margin:auto;
}

.card{
    background:#0f1b2e;
    padding:25px;
    border-radius:10px;
    margin-bottom:25px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.card h3{
    margin-bottom:15px;
}

textarea{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:none;
    background:#0a1423;
    color:#fff;
}

input{
    padding:10px;
    border-radius:8px;
    border:none;
    background:#0a1423;
    color:#fff;
}

button{
    margin-top:10px;
}

.btn-group{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table th,
.table td{
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.badge{
    padding:5px 10px;
    border-radius:6px;
    font-size:12px;
}

.bg-success{background:#2ecc71;}
.bg-warning{background:#f1c40f;color:#000;}
.bg-danger{background:#e74c3c;}

.media-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.media-row input{
    flex:1;
}

.section-title{
    font-size:20px;
    margin-bottom:15px;
}