:root {
    --primary: #B76E78;
    --primary-dark: #9A5C65;
    --primary-light: #D5A3A9;
    --secondary: #C5957D;
    --success: #8A9A5B;
    --danger: #C25E5E;
    --warning: #D9A566;
    --info: #7A9BB9;
    --dark: #2D2D2D;
    --light: #F9F6F3;
    --gray: #9A9A9A;
    --gray-light: #E8E3DF;
    --gray-dark: #5A5A5A;
    --white: #FFFFFF;
    --shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 8px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-1: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-2: linear-gradient(135deg, #B76E78, #C5957D);
}

[data-theme="dark"] {
    --primary: #D5A3A9;
    --primary-dark: #B76E78;
    --primary-light: #E8C1C6;
    --secondary: #DDBEA9;
    --success: #A2B280;
    --danger: #DA8282;
    --warning: #E6BD8A;
    --info: #9FBDD9;
    --dark: #F9F6F3;
    --light: #2D2A2A;
    --gray: #A0A0A0;
    --gray-light: #4A4A4A;
    --gray-dark: #D5D0CB;
    --white: #212121;
    --shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    transition: var(--transition);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    cursor: pointer;
    position: relative;
    display: block;
    width: 50px;
    height: 26px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 3px;
    transition: var(--transition);
}

[data-theme="dark"] .theme-label {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-label .sun-icon,
.theme-label .moon-icon {
    position: absolute;
    top: 1px;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.theme-label .sun-icon {
    left: 3px;
    color: #D9A566;
    opacity: 1;
    transform: translateX(0);
}

.theme-label .moon-icon {
    right: 3px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(100%);
}

.theme-checkbox:checked + .theme-label .sun-icon {
    opacity: 0;
    transform: translateX(-100%);
}

.theme-checkbox:checked + .theme-label .moon-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--light);
    background-image: linear-gradient(rgba(183, 110, 120, 0.05) 1px, transparent 1px),
                      linear-gradient(to right, rgba(183, 110, 120, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23B76E78" fill-opacity="0.2" d="M0,192L48,170.7C96,149,192,107,288,112C384,117,480,171,576,197.3C672,224,768,224,864,208C960,192,1056,160,1152,154.7C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 1440px 100px;
    animation: wave-animation 20s linear infinite;
}

.wave1 {
    opacity: 0.7;
    animation-delay: 0s;
    bottom: 0;
}

.wave2 {
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
    animation-duration: 15s;
}

@keyframes wave-animation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 10px 120px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 15px;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.menu-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Estilos para página de notas fiscais */
.invoice-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.upload-area.smaller {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(183, 110, 120, 0.2);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.action-button-small {
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--gray-light);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button-small:hover {
    background-color: var(--gray);
    color: white;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.success-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-button:hover {
    background-color: #7a895d;
    transform: translateY(-2px);
}

.reconcile-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.reconcile-header {
    text-align: center;
    margin-bottom: 10px;
}

.reconcile-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.reconcile-header p {
    color: var(--gray);
}

.reconcile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.reconcile-sections-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.reconcile-section {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.reconcile-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.bank-selector {
    min-width: 150px;
}

.reconcile-summary {
    background-color: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-label {
    font-weight: 500;
    color: var(--gray-dark);
}

.summary-value {
    font-weight: 600;
    color: var(--primary);
}

.summary-value.negative {
    color: var(--danger);
}

.summary-value.positive {
    color: var(--info);
}

.summary-value.balanced {
    color: var(--success);
}

.reconcile-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.search-container.small {
    width: 200px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffd54f;
}

.status-badge.reconciled {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-badge.partial {
    background-color: #e1f5fe;
    color: #0288d1;
    border: 1px solid #81d4fa;
}

/* Badges para status de conciliação */
.reconciliation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.badge-pending {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffd54f;
}

.badge-partial {
    background-color: #e1f5fe;
    color: #0288d1;
    border: 1px solid #81d4fa;
}

.badge-available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-unavailable {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.row-reconciled {
    background-color: rgba(46, 125, 50, 0.05) !important;
}

.row-partial {
    background-color: rgba(2, 136, 209, 0.05) !important;
}

.row-pending {
    background-color: rgba(245, 124, 0, 0.02) !important;
}

/* Estilo para notas fiscais utilizadas */
.row-used {
    background-color: #ffe6ea !important;
    border-left: 4px solid #ff4d6a !important;
}

/* Estilo para depósitos parcialmente utilizados */
.deposit-partially-used {
    background-color: #e6f7ff !important;
    border-left: 4px solid #1890ff !important;
}

/* Estilos para os valores utilizados e disponíveis */
.used-amount {
    color: #ff4d6a;
    font-weight: 500;
}

.available-amount {
    color: #1a9850;
    font-weight: 500;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    overflow: hidden;
}

.large-logo {
    width: 100%;
    height: 100px;
    max-width: 200px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.logo-image:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--secondary);
    font-weight: 400;
}

.main-title {
    color: var(--dark);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: var(--transition);
}

.upload-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.upload-container {
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 60px 30px;
    transition: var(--transition);
    position: relative;
}

.upload-container:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.03);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.upload-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.upload-text {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.file-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px rgba(99, 102, 241, 0.4);
}

.file-button:active {
    transform: translateY(0) scale(0.98);
}

.file-info {
    font-size: 1rem;
    color: var(--gray);
    background-color: var(--gray-light);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
}

/* Loader */
.loader {
    text-align: center;
    padding: 40px;
    margin: 20px 0;
}

.loader-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bank-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: -40px;
}

.bank-panel {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 24px; /* Reduced by 40% from 40px */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    text-decoration: none;
}

.no-transition {
    transition: none !important;
}

.bank-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-light), transparent, var(--secondary));
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bank-panel:hover::before {
    opacity: 0.5;
}

.bank-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 110, 120, 0.25);
    background: linear-gradient(145deg, var(--white), #f9f4f5);
    border-top: 3px solid var(--primary);
}

.bank-icon {
    width: 100%;
    height: 132px; /* Reduced by 40% from 220px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px; /* Reduced by 40% from 30px */
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.bank-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.bank-panel:hover .bank-logo {
    transform: scale(1.08);
}

.bank-name {
    color: var(--dark);
    font-size: 1.1rem; /* Reduced by 40% from 1.8rem */
    margin-bottom: 9px; /* Reduced by 40% from 15px */
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 12px;
}

.bank-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.bank-description {
    color: var(--gray);
    font-size: 0.7rem; /* Reduced by 40% from 1.1rem */
    max-width: 90%;
    margin: 0 auto 12px; /* Reduced by 40% from 15px */
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.bank-data-preview {
    width: 100%;
    margin-top: 16px;
    padding: 12px 10px;
    border-radius: 8px;
    background-color: rgba(245, 245, 245, 0.6);
    font-size: 0.85rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.preview-item:hover {
    background-color: rgba(183, 110, 120, 0.05);
}

.preview-label {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.preview-value {
    font-weight: 600;
    color: var(--primary);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Estilos para detalhes das notas fiscais */
.invoice-details-row {
    background-color: var(--light);
    transition: all 0.3s ease;
}

.invoice-details-cell {
    padding: 0;
}

.invoice-details-container {
    padding: 16px;
    border-top: 1px dashed var(--gray-light);
}

.invoice-deposits-loading {
    padding: 16px;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

.invoice-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.invoice-details-header h4 {
    margin: 0;
    color: var(--primary);
}

.invoice-details-summary {
    display: flex;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.detail-value {
    font-weight: 600;
    font-size: 1rem;
}

.progress-container {
    width: 100px;
    height: 18px;
    background-color: var(--gray-light);
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.progress-bar {
    height: 100%;
    background-color: var(--success);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.deposits-by-bank {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-group {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bank-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--gray-light);
    font-weight: 600;
}

.bank-total {
    color: var(--primary);
}

.bank-deposits {
    padding: 8px;
}

.deposit-item {
    padding: 6px;
    border-bottom: 1px solid var(--gray-light);
}

.deposit-item:last-child {
    border-bottom: none;
}

.deposit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deposit-date {
    font-size: 0.85rem;
    color: var(--gray);
    width: 100px;
}

.deposit-description {
    flex: 1;
    margin: 0 12px;
    color: var(--gray-dark);
}

.deposit-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
}

.deposit-amount-total,
.deposit-amount-used,
.deposit-amount-for-invoice {
    display: block;
    font-size: 0.85rem;
}

.deposit-amount-total {
    font-weight: 600;
    color: var(--primary);
}

.deposit-amount-used {
    color: var(--gray);
}

.deposit-amount-for-invoice {
    font-weight: 600;
    color: var(--success);
}

.deposit-doc-number {
    color: var(--secondary);
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.deposit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.no-deposits-message {
    text-align: center;
    font-style: italic;
    color: var(--gray);
    padding: 16px;
}

.error-message {
    text-align: center;
    color: var(--danger);
    padding: 16px;
}

/* Cursor de mão para linhas clicáveis */
.invoice-row {
    cursor: pointer;
}

/* Destacar as linhas das notas ao passar o mouse */
.invoice-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dashboard {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dashboard:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUpIn 0.8s ease-out;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.05);
    padding: 18px 21px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius) 0 0 var(--radius);
}

/* Estilos para o botão flutuante */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos para o modal de escolha de banco */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bank-selection-modal {
    background-color: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.modal-overlay.active .bank-selection-modal {
    transform: translateY(0);
}

.bank-selection-header {
    margin-bottom: 20px;
    text-align: center;
}

.bank-selection-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.bank-selection-header p {
    color: var(--gray);
}

.bank-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.bank-option {
    background-color: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-option:hover {
    border-color: var(--primary);
    background-color: rgba(183, 110, 120, 0.05);
    transform: translateY(-3px);
}

.bank-option.selected {
    border-color: var(--success);
    background-color: rgba(138, 154, 91, 0.1);
}

.bank-option-icon {
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bank-option h4 {
    font-size: 0.9rem;
    margin: 10px 0 5px;
}

.bank-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para o botão de voltar nas páginas de banco */
.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--gray-dark);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.banco-title {
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Estilos para a tabela vazia */
.empty-table {
    text-align: center;
    padding: 30px;
    color: var(--gray);
    font-style: italic;
}

/* Estilos para o botão de limpar dados */
.danger-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--danger);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.danger-button:hover {
    background-color: #c94c4c;
    transform: translateY(-2px);
}

.actions-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px rgba(183, 110, 120, 0.15);
}

.card-icon-wrapper {
    position: relative;
    margin-right: 15px;
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(183, 110, 120, 0.1);
    color: var(--primary);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(183, 110, 120, 0.15);
    transition: all 0.4s ease;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.total-transactions .card-icon {
    background: rgba(183, 110, 120, 0.08);
    color: var(--primary);
}

.total-transactions .card-decoration {
    background: linear-gradient(to bottom, var(--primary), #d5a3a9);
}

.total-deposits .card-icon {
    background: rgba(138, 154, 91, 0.08);
    color: var(--success);
}

.total-deposits .card-decoration {
    background: linear-gradient(to bottom, var(--success), #a2b280);
}

.total-withdrawals .card-icon {
    background: rgba(194, 94, 94, 0.08);
    color: var(--danger);
}

.total-withdrawals .card-decoration {
    background: linear-gradient(to bottom, var(--danger), #da8282);
}

.account-info .card-icon {
    background: rgba(122, 155, 185, 0.08);
    color: var(--info);
}

.account-info .card-decoration {
    background: linear-gradient(to bottom, var(--info), #9fbdd9);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.6px;
    position: relative;
    display: inline-block;
}

.card-content h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.card-content p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.8px;
}

.counter-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.counter {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
}

.counter-amount {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section h3 {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gray-light);
}

.counter {
    display: inline-block;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
    text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.05);
}

.counter::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    background-position: bottom;
    background-size: contain;
    background-repeat: repeat-x;
    bottom: -8px;
    left: 0;
    opacity: 0.1;
    z-index: -1;
}

.transactions-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: slideUpIn 0.9s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
    width: 100%;
}

.transactions-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 350px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    background-color: transparent;
    font-size: 1rem;
    color: var(--dark);
}

.search-container input:focus {
    outline: none;
}

.search-container button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background-color: var(--primary-dark);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-container select {
    padding: 12px 20px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
}

.filter-container select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.export-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--success);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.export-button:hover {
    background-color: #0d9668;
    transform: translateY(-2px);
}

.export-button:active {
    transform: translateY(0);
}

.export-button.warning {
    background-color: var(--warning);
    color: #000;
}

.export-button.warning:hover {
    background-color: #d97706;
}

.export-button.info {
    background-color: var(--info);
    color: var(--white);
}

.export-button.info:hover {
    background-color: #2563eb;
}

.transactions-table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-height: 90vh;
    min-height: 600px;
    overflow-y: auto;
    background: #ffffff;
    padding: 15px;
    border: 1px solid rgba(183, 110, 120, 0.1);
    width: 100%;
}

.transactions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1100px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.transactions-table th,
.transactions-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.transactions-table th {
    background: #ffffff;
    font-weight: 600;
    color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    padding: 14px 20px;
}

.transactions-table th:first-child {
    border-top-left-radius: var(--radius-sm);
}

.transactions-table th:last-child {
    border-top-right-radius: var(--radius-sm);
}

.checkbox-column {
    width: 70px;
    text-align: center;
}

.transactions-table tr {
    transition: var(--transition);
}

.transactions-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.transactions-table tbody tr:hover {
    background-color: rgba(183, 110, 120, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.transactions-table tbody tr:nth-child(even) {
    background-color: rgba(249, 246, 243, 0.4);
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: var(--transition);
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.transaction-type {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.transaction-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tag-blocked {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    animation: pulse-red 1.5s infinite;
}

.tag-warning {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ffc107;
    color: #000;
    font-size: 0.9rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.type-deposit {
    background-color: rgba(183, 110, 120, 0.08);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--success);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.type-withdrawal {
    background-color: rgba(183, 110, 120, 0.08);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--danger);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.type-check {
    background-color: rgba(183, 110, 120, 0.08);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--warning);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.type-pix {
    background-color: rgba(183, 110, 120, 0.08);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--info);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* Tabs Navigation */
.transaction-tabs {
    width: 100%;
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--gray-light);
    overflow-x: auto;
    white-space: nowrap;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    color: var(--gray);
    background-color: transparent;
    border-bottom: 3px solid transparent;
    margin-right: 5px;
}

.tab-item:hover {
    color: var(--primary);
    background-color: rgba(183, 110, 120, 0.05);
}

.tab-item.active {
    color: var(--primary);
    background-color: rgba(255, 182, 193, 0.3); /* Light red background */
    border-bottom: 3px solid var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Row color indicators based on transaction type */
.row-deposit {
    border-left: 4px solid var(--success);
}

.row-withdrawal {
    border-left: 4px solid var(--danger);
}

.row-check {
    border-left: 4px solid var(--warning);
}

.row-pix {
    border-left: 4px solid var(--info);
}

/* Estilos para o painel de status de conciliação */
.reconciliation-status-panel {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border: 1px solid var(--gray-light);
    margin: 0 auto 0;
    max-width: 96%;
    transition: transform 0.3s ease;
}

.status-panel-section {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    border-right: 1px solid var(--gray-light);
}

.status-panel-section:last-child {
    border-right: none;
}

.status-panel-section h4 {
    margin-bottom: 10px;
    color: var(--gray-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.status-panel-section h4::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('https://www.nfeguaiba.com.br/wp-content/uploads/2017/12/NF-e.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

.status-panel-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-panel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.status-value {
    font-weight: bold;
    font-size: 1rem;
}

.note-value {
    color: var(--primary);
}

.remaining-value {
    color: var(--danger);
}

.registered-total {
    color: var(--success);
}

.used-total {
    color: var(--warning);
}

.available-total {
    color: var(--info);
}

.status-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.quick-reconcile-button {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.quick-reconcile-button:hover:not(:disabled) {
    background-color: #7a895d;
    transform: translateY(-2px);
}

.quick-reconcile-button:disabled {
    background-color: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
}

.reconciliation-progress {
    width: 100%;
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.reconciliation-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--danger), var(--primary), var(--success));
    transition: width 0.3s ease;
}

.reconciliation-status {
    font-size: 0.85rem;
    color: var(--gray-dark);
    text-align: center;
    margin: 5px 0;
    font-style: italic;
}

.amount {
    font-weight: 600;
}

.amount {
    color: #2563EB; /* Azul */
}

.amount.negative {
    color: #DC2626; /* Vermelho */
    font-weight: bold;
}

.transaction-row-negative {
    background-color: rgba(239, 68, 68, 0.08);
    position: relative;
    border-left: 4px solid var(--danger);
    transform: scale(1);
    transition: all 0.3s ease;
}

.transaction-row-negative:hover {
    background-color: rgba(239, 68, 68, 0.12);
}

.actions-cell {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    padding: 5px;
    border-radius: 4px;
}

.action-button:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
    background-color: #f0f0f0;
}

.delete-button:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

.transaction-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 2px solid var(--primary);
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    position: relative;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin: 0;
    padding: 0;
    vertical-align: middle;
    display: inline-block;
}

.transaction-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.transaction-checkbox:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 7px rgba(99, 102, 241, 0.25);
}

.transaction-checkbox:checked {
    background-color: var(--primary);
    border-color: transparent;
    transform: scale(1.05);
}

.transaction-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.transaction-checkbox:disabled {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

.transaction-checkbox:disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

.transaction-checkbox:disabled::after {
    content: '\00d7';
    position: absolute;
    left: 5px;
    top: -5px;
    color: var(--danger);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.currency-value {
    font-weight: 600;
}

.currency-value.positive {
    color: #2563EB;
}

.currency-value.negative {
    color: #DC2626;
    font-weight: bold;
}

.lock-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    vertical-align: middle;
}

.lock-icon.locked {
    background-color: var(--danger);
    color: white;
}

.lock-icon.unlocked {
    background-color: var(--success);
    color: white;
}

.lock-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 7px rgba(0,0,0,0.2);
}

.lock-icon:active {
    transform: scale(0.95);
}

.lock-icon svg {
    width: 14px;
    height: 14px;
}

.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
}

.document-number {
    font-family: 'Poppins', sans-serif;
    background-color: rgba(183, 110, 120, 0.08);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(100px);
    opacity: 0;
    max-width: 400px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.notification.success .notification-content::before {
    background: var(--success);
}

.notification.error .notification-content::before {
    background: var(--danger);
}

.notification.warning .notification-content::before {
    background: var(--warning);
}

.notification.info .notification-content::before {
    background: var(--info);
}

.notification-icon {
    margin-right: 20px;
    color: var(--primary);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--danger);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.info .notification-icon {
    color: var(--info);
}

.notification-message {
    flex: 1;
}

.notification-message h4 {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 600;
}

.notification-message p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.close-notification {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
    padding: 5px;
}

.close-notification:hover {
    color: var(--dark);
    transform: scale(1.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* Repeated transaction styles */
.repeated-transaction {
    background-color: rgba(245, 158, 11, 0.1) !important;
    position: relative;
    box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.1);
}

.repeated-transaction:hover {
    background-color: rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-2px);
}

.repeated-transaction td:first-child {
    border-left: 3px solid var(--warning);
}

/* Transaction styles for blocked/unblocked */
.transaction-blocked {
    opacity: 0.7;
    position: relative;
    background-color: rgba(255, 182, 193, 0.3) !important;
}

.transaction-blocked::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(194, 94, 94, 0.05) 10px,
        rgba(194, 94, 94, 0.05) 20px
    );
    pointer-events: none;
}

.transaction-unblocked {
    background-color: rgba(16, 185, 129, 0.1) !important;
    animation: pulse-success 2s infinite;
}

.transaction-unblocked td:first-child {
    border-left: 3px solid var(--success);
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 154, 91, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(138, 154, 91, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 154, 91, 0);
    }
}

/* Ignored/selected styles */
.transaction-ignored {
    opacity: 0.5;
    text-decoration: line-through;
    background-color: rgba(108, 117, 125, 0.1) !important;
}

.transaction-selected {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.transaction-selected td {
    border-left: 3px solid var(--success);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-light);
    margin-top: 60px;
    background-color: var(--white);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

/* Estilos para o modal de resumo da importação */
.import-summary-modal .modal-content {
    max-width: 500px;
}

.import-summary-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.summary-stat {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--background-alt);
    min-width: 120px;
    background-color: rgba(183, 110, 120, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    color: var(--gray);
}

.summary-message {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark);
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.primary-button {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background-color: var(--light);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.secondary-button:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
}

.secondary-button:active {
    transform: translateY(0);
}

/* Cheque management styles */
.cheques-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.cheque-grupo {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.cheque-grupo:hover {
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cheque-header {
    background-color: var(--light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light);
}

.cheque-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.cheque-header h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    margin-right: 10px;
}

.cheque-opcoes {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cheque-opcao {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background-color: var(--white);
}

.cheque-opcao:hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-light);
}

.cheque-opcao input[type="radio"] {
    margin-top: 3px;
    margin-right: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.cheque-opcao input[type="radio"]:checked {
    border-color: var(--primary);
    background-color: var(--white);
}

.cheque-opcao input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radioCheck 0.2s ease forwards;
}

@keyframes radioCheck {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.opcao-info {
    display: flex;
    flex-direction: column;
}

.opcao-info strong {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.opcao-data {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 500;
}

.opcao-descricao {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .card-content p {
        font-size: 1.5rem;
    }
    
    .upload-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .filter-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .upload-container {
        padding: 40px 20px;
    }
    
    .upload-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .transactions-container {
        padding: 20px 15px;
    }
    
    .file-button {
        padding: 12px 24px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}