* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: #1f2a36;
    color: #fff;
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #0d1b2a;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
}

.sidebar h1 {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #cfd8dc;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1b263b;
    color: #fff;
}

/* MAIN */
.main {
    margin-left: 240px;
    width: calc(100% - 240px);
    padding: 20px;
}

/* TOPBAR */
.topbar {
    background: #0d1b2a;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
}

.card h3 {
    font-size: 14px;
    color: #90caf9;
    margin-bottom: 10px;
}

.card p {
    font-size: 22px;
    font-weight: bold;
}
/* BOTÕES */
.btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #2196f3;
    color: #fff;
}

.btn-primary:hover {
    background: #1976d2;
}

.btn-secondary {
    background: #37474f;
    color: #fff;
}

.btn-secondary:hover {
    background: #263238;
}

/* TABELA */
.table-container {
    margin-top: 20px;
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #0d1b2a;
}

th, td {
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

th {
    color: #90caf9;
}

tr:nth-child(even) {
    background: #162436;
}

tr:hover {
    background: #22344d;
}

/* STATUS */
.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.status-ativo {
    background: #2e7d32;
}

.status-inativo {
    background: #b71c1c;
}
.actions a {
    margin-right: 8px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.actions .edit {
    color: #4fc3f7;
}

.actions .delete {
    color: #ef5350;
}
/* FORMULÁRIOS */
.form-card {
    max-width: 420px;
    background: #1b263b;
    padding: 25px;
    border-radius: 12px;
}

.form-card h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #90caf9;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
}

.form-group input {
    background: #f5f5f5;
}

.form-group select {
    background: #f5f5f5;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.actions .renew {
    color: #81c784;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

.vencimento-item {
    background: #162436;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}
/* LOGIN */
.login-page {
    width: 100%;
    height: 100vh;
    background: #1f2a36;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 360px;
    background: #1b263b;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 20px;
}

.login-card .form-group input {
    background: #f5f5f5;
}

.login-error {
    background: #b71c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}
.status-pago {
    background: #2e7d32;
}

.status-atrasado {
    background: #c62828;
}

.status-inativo {
    background: #455a64;
}
