/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0c0e;
    color: #e0e0e0;
    line-height: 1.6;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (sinder bar) */
.sidebar {
    width: 260px;
    background: #1a1e24;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #2a2f38;
}

.sidebar-header h2 {
    color: #2ecc71;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #b0b7c0;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: #252b33;
    color: #2ecc71;
    border-left-color: #2ecc71;
}

.sidebar-nav a.active {
    background: #252b33;
    color: #2ecc71;
    border-left-color: #2ecc71;
    font-weight: 500;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #121518;
}

.top-bar {
    background: #1a1e24;
    padding: 1rem 2rem;
    color: #e0e0e0;
    border-bottom: 1px solid #2a2f38;
    text-align: right;
}

.content {
    padding: 2rem;
    flex: 1;
}

/* Footer */
.site-footer {
    background: #1a1e24;
    color: #6c757d;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #2a2f38;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: #1e242b;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    border: 1px solid #2a2f38;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #2ecc71;
}

.card-icon {
    font-size: 2.5rem;
    background: #2a2f38;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
}

.card-content h3 {
    font-size: 1rem;
    color: #adb5bd;
    font-weight: 500;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2ecc71;
    line-height: 1.2;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-primary {
    background: #2ecc71;
    color: #1a1e24;
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.btn-info {
    background: #2ecc71;
    color: #1a1e24;
}

.btn-info:hover {
    background: #27ae60;
}

/* Formulários */
.form-container {
    background: #1e242b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #2a2f38;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #adb5bd;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #121518;
    border: 1px solid #2a2f38;
    border-radius: 6px;
    font-size: 1rem;
    color: #e0e0e0;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2ecc71;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    background: #1e242b;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #2a2f38;
}

.table thead {
    background: #121518;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2f38;
}

.table th {
    font-weight: 600;
    color: #adb5bd;
}

.table td {
    color: #e0e0e0;
}

.table tr:hover {
    background: #252b33;
}

/* Alertas */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert.sucesso {
    background: #1e3a2a;
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.alert.erro {
    background: #3a1e1e;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: #1e242b;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid #2a2f38;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: #2ecc71;
    text-align: center;
}

/* Página header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    color: #e0e0e0;
}

/* Card dívida */
.card-divida {
    background: #1e242b;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2f38;
    margin-bottom: 2rem;
}

.card-divida p {
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.card-divida strong {
    color: #2ecc71;
}

/* Pagamentos */
.pagamentos {
    background: #1e242b;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2f38;
}

.pagamentos h3 {
    margin-bottom: 1rem;
    color: #2ecc71;
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    .sidebar-nav a {
        flex: 1;
        border-left: none;
        border-bottom: 2px solid transparent;
        text-align: center;
    }
    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        border-left-color: transparent;
        border-bottom-color: #2ecc71;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column;
    }
}