/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --header-height: 70px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Página de Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box h1 {
    text-align: center;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-box h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.1em;
    font-weight: 400;
}

.login-info {
    margin-top: 25px;
    padding: 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--text-light);
    border-left: 4px solid var(--primary-color);
}

.login-info p {
    margin: 6px 0;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    margin: 4px 12px;
    border-radius: 10px;
}

.nav-item span {
    margin-right: 12px;
    font-size: 1.3em;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-light);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.15) 100%);
    color: white;
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-color);
}

.top-header {
    background: white;
    padding: 22px 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.top-header h1 {
    color: var(--text-color);
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-info {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.95em;
}

.content {
    padding: 35px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    font-size: 3.2em;
    margin-right: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-number {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 0.95em;
    color: var(--success-color);
    margin-top: 6px;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out;
}

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

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-header h2 {
    color: var(--text-color);
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Search Box */
.search-box {
    background: white;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.search-input {
    width: 70%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    margin-right: 12px;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Filters */
.filters-box {
    background: white;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.filters-form {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters-form .form-group {
    flex: 1;
    min-width: 200px;
}

.filters-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9em;
}

.filters-form input,
.filters-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.filters-form input:focus,
.filters-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Table */
.table-container {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.table-clientes thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
}

.table-clientes tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table-clientes tbody tr:nth-child(odd) {
    background-color: white;
}

.table-clientes tbody tr:hover {
    background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
    transform: none;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--success-color);
    color: white;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
}

.cliente-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.cliente-actions a {
    transition: color 0.2s ease;
}

.cliente-actions a:hover {
    text-decoration: underline;
}

/* Ações dos boletos */
.acoes-boleto {
    white-space: nowrap;
    min-width: 200px;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.btn-group .btn {
    margin: 0;
    vertical-align: middle;
}

.btn-group form {
    display: inline-block;
    margin: 0;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.btn-filter:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Status Select */
.status-select {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.status-select.status-a-receber {
    border-color: var(--warning-color);
    color: var(--warning-color);
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.status-select.status-pago {
    border-color: var(--success-color);
    color: var(--success-color);
    background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%);
}

.status-select.status-vencido {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #475569 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-pix {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: 1px solid #475569;
}

.btn-pix:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    box-shadow: none;
}

.btn-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: none;
}

/* Form */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Personalizado */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--text-light);
}

/* Badge AbacatePay */
.badge-abacatepay {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 2em;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--text-color);
    background: var(--bg-color);
    transform: rotate(90deg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
    padding: 22px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.pagination span {
    color: var(--text-color);
    font-weight: 600;
}

/* Section */
.section {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.section h2 {
    margin-bottom: 24px;
    color: var(--text-color);
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Seleção de texto */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Tabs (Abas) */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    background: white;
    border-radius: 14px 14px 0 0;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.3em;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Filtros avançados */
.filters-advanced {
    background: white;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.filters-advanced h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 700;
}

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

.filters-grid .form-group {
    margin-bottom: 0;
}

.filters-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Visualização de dados */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.info-item strong {
    display: block;
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .content {
        padding: 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-header h2 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: clamp(0.9rem, 3vw, 1rem);
        min-height: 44px;
    }
    
    .nav-item span {
        font-size: 1.2em;
        width: 22px;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 2.5em;
        margin-right: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
        font-size: clamp(0.9rem, 3vw, 1rem);
        min-height: 44px;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .filters-form .form-group {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
    }
    
    .content {
        padding: 16px;
    }
    
    .top-header {
        padding: 15px 16px;
        flex-wrap: wrap;
    }
    
    .top-header h1 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        width: 100%;
        margin-bottom: 8px;
    }
    
    .user-info {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        padding: 6px 12px;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 16px;
        margin: 20px;
        max-width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        margin-bottom: 8px;
        display: block;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        min-height: 44px;
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 10px 14px;
    }
}

/* Responsive - Mobile Pequeno */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .content {
        padding: 12px;
    }
    
    .top-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .top-header h1 {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }
    
    .user-info {
        width: 100%;
        justify-content: flex-start;
    }
    
    .card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .modal-content {
        padding: 16px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-a-receber {
    background: #fef3c7;
    color: #b45309;
}

.status-badge.status-pago {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-vencido {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Abas de Navegação (Boletos, etc.)
   ======================================== */
.boletos-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.boletos-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.boletos-tabs .tab-btn:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.boletos-tabs .tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.boletos-tabs .tab-btn.active .badge {
    background: rgba(255,255,255,0.25);
    color: white;
}

.boletos-tabs .tab-btn .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-color);
    color: var(--text-light);
}

.boletos-tabs .tab-btn .badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.boletos-tabs .tab-btn .badge.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.boletos-tabs .tab-btn .badge.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsivo */
@media (max-width: 768px) {
    .boletos-tabs {
        width: 100%;
        flex-direction: column;
    }
    
    .boletos-tabs .tab-btn {
        justify-content: center;
    }
}

