/* CONFIGURAÇÕES GERAIS - TEMA DARK ELEGANTE E MODERNO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #12141c;
    color: #e2e8f0;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* TELA DE BOAS VINDAS (HOME) */
.screen {
    width: 100%;
    min-height: 100vh;
}

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.datetime-widget {
    text-align: center;
    margin-bottom: 30px;
    background: #1e2230;
    padding: 15px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3446;
}

.datetime-widget p {
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: bold;
}

.datetime-widget h2 {
    color: #63b3ed;
    font-size: 1.8rem;
    margin-top: 5px;
}

.welcome-box {
    background: #1e2230;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid #2d3446;
}

.logo-icon {
    font-size: 4rem;
    color: #4299e1;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.4));
}

.welcome-box h1 {
    font-size: 2rem;
    color: #f7fafc;
    margin-bottom: 10px;
}

.welcome-box p {
    color: #a0aec0;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* BOTÕES */
.btn-primary {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.4);
}

.btn-primary:hover {
    background-color: #4299e1;
    box-shadow: 0 5px 20px rgba(66, 153, 225, 0.6);
}

.btn-secondary {
    background-color: #2d3446;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #4a5568;
}

.btn-logout {
    background: #2d3446;
    border: 1px solid #4a5568;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #fc8181;
}

.btn-logout:hover {
    background: #e53e3e;
    color: white;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1e2230;
    border-bottom: 1px solid #2d3446;
}

.header-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7fafc;
}

.dashboard-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* CARDS DE SALDO */
.balance-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media(min-width: 600px) {
    .balance-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #1e2230;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2d3446;
}

.card h3 {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.card p {
    font-size: 1.4rem;
    font-weight: bold;
}

.card-icon {
    font-size: 2.2rem;
}

.card-income p { color: #48bb78; }
.card-income .card-icon { color: #48bb78; }
.card-expense p { color: #f56565; }
.card-expense .card-icon { color: #f56565; }
.card-total p { color: #63b3ed; }
.card-total .card-icon { color: #63b3ed; }

/* SEÇÃO DE GRÁFICOS */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-box {
    background: #1e2230;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #2d3446;
}

.chart-box h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #e2e8f0;
}

/* TABELAS DARK STYLED */
.recent-activity {
    margin-bottom: 25px;
}

.recent-activity h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #2d3446;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e2230;
    color: #e2e8f0;
    text-align: left;
    font-size: 0.9rem;
}

.styled-table th {
    background-color: #252a3d;
    padding: 12px 15px;
    font-weight: bold;
    color: #cbd5e0;
}

.styled-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2d3446;
}

.styled-table tbody tr:last-of-type td {
    border-bottom: none;
}

/* BOTÕES DE EXCLUSÃO */
.btn-delete {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-delete:hover {
    color: #e53e3e;
}

/* FILTROS E BLOCOS DOS RELATÓRIOS */
.large-modal {
    max-width: 650px !important;
}

.report-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: center;
    background-color: #12141c;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

@media(min-width: 600px) {
    .report-filters {
        grid-template-columns: 1fr 1fr auto;
    }
}

.report-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

@media(min-width: 600px) {
    .report-filter-buttons {
        margin-top: 25px;
        width: auto;
    }
}

.report-summary-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.rep-box {
    background-color: #252a3d;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.text-green { color: #48bb78; }
.text-red { color: #f56565; }

/* BOTÕES DE MENU */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.btn-action {
    border: none;
    padding: 15px 10px;
    border-radius: 14px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-green { background-color: #2f855a; }
.btn-blue { background-color: #2b6cb0; }
.btn-purple { background-color: #6b46c1; }

/* REGRAS DE MODAIS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

@media(min-width: 600px) {
    .modal { align-items: center; }
}

.modal-content {
    background-color: #1e2230;
    width: 100%;
    max-width: 500px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 25px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d3446;
}

@media(min-width: 600px) {
    .modal-content { border-radius: 24px; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2d3446;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #f7fafc;
    display: flex;
    align-items: center;
}

.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: #718096;
}

/* FORMULÁRIOS */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #a0aec0;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    background-color: #12141c;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
}

.form-actions-flex {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-submit {
    background-color: #3182ce;
    color: white;
    border: none;
    flex: 2;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-clear-form {
    background-color: #2d3446;
    color: #cbd5e0;
    border: 1px solid #4a5568;
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-clear-form:hover {
    background-color: #4a5568;
    color: white;
}

/* LISTAS COM ICONE DE EXCLUSÃO */
.list-data {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.list-data li {
    padding: 12px 15px;
    border-bottom: 1px solid #2d3446;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
}

/* FORMULÁRIOS INLINE DE ADIÇÃO RÁPIDA (BANCOS E CATEGORIAS) */
.inline-add-form {
    background-color: #12141c;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px dashed #4a5568;
}

.form-group-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-group-inline input {
    flex: 2;
    padding: 10px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background-color: #1e2230;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
}

.form-group-inline select {
    flex: 1;
    padding: 10px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background-color: #1e2230;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
}

.form-group-inline input:focus, .form-group-inline select:focus {
    border-color: #4299e1;
}

.btn-inline-submit {
    background-color: #38a169;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-inline-submit:hover {
    background-color: #48bb78;
}

.btn-inline-clear {
    background-color: #2d3446;
    color: #a0aec0;
    border: 1px solid #4a5568;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-inline-clear:hover {
    background-color: #4a5568;
    color: #fc8181;
}

/* BOTÃO DE MICROFONE E ANIMAÇÃO DE ESCUTA */
.btn-mic-header {
    background: #2d3446;
    border: 1px solid #4a5568;
    color: #a0aec0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-mic-header:hover {
    color: #4299e1;
    border-color: #4299e1;
    background: #252a3d;
}

.btn-mic-header.listening {
    background-color: #e53e3e !important;
    color: white !important;
    border-color: #e53e3e !important;
    animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}