/* ==========================
   RESET
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #f1f4f9;
}

/* ==========================
   LAYOUT ESTRUTURAL
========================== */

.sidebar {
    width: 240px;
    height: 100vh;
    background: #0d1b2a;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar h1 {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar a {
    display: block;
    color: #cfd8dc;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #1b263b;
    color: #fff;
}

.main {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar span {
    color: #555;
    font-size: 14px;
}

.content {
    padding: 30px;
    width: 100%;
}

/* ==========================
   CARDS
========================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.card h3 {
    font-size: 14px;
    color: #777;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    color: #0d1b2a;
}

/* ==========================
   TABELAS
========================== */

table,
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

table th,
table td,
.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table th,
.table th {
    background: #f8fafc;
    text-align: left;
    color: #555;
    font-weight: 600;
}

table tr:hover,
.table tr:hover {
    background: #f1f4f9;
}

/* ==========================
   BOTÕES
========================== */

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: #1d4ed8;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

/* ==========================
   STATUS BADGES
========================== */

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.status-aberta {
    background: #f59e0b;
}

.status-em_andamento {
    background: #2563eb;
}

.status-finalizada {
    background: #10b981;
}

/* ==========================
   FORMULÁRIOS
========================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}