/* Custom styles for BURGUER DO GORDO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Sidebar active state */
.nav-link.active {
    background-color: #1a1a1a;
}

/* Card styles */
.card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.dark .card {
    background: #27272a;
    border-color: #3f3f46;
}

/* Stats card */
.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.dark th, .dark td {
    border-color: #3f3f46;
}

th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
}

.dark th {
    color: #9ca3af;
}

/* Button styles */
.btn, .btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #22c55e;
    color: white;
}

.btn-primary:hover {
    background-color: #16a34a;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.dark .btn-secondary {
    background-color: #3f3f46;
    color: #e5e7eb;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.dark .btn-secondary:hover {
    background-color: #52525b;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.dark .btn-outline {
    border-color: #3f3f46;
    color: #e5e7eb;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

.dark .btn-outline:hover {
    background-color: #3f3f46;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #d1d5db;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
    color: #111827;
    transition: border-color 0.2s;
}

.dark .form-input, .dark .form-select, .dark .form-textarea {
    background-color: #27272a;
    border-color: #3f3f46;
    color: #f4f4f5;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-income {
    background-color: #dcfce7;
    color: #166534;
}

.dark .badge-income {
    background-color: #14532d;
    color: #86efac;
}

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

.dark .badge-expense {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.dark .badge-pending {
    background-color: #78350f;
    color: #fcd34d;
}

.badge-paid {
    background-color: #dcfce7;
    color: #166534;
}

.dark .badge-paid {
    background-color: #14532d;
    color: #86efac;
}

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

.dark .badge-overdue {
    background-color: #7f1d1d;
    color: #fca5a5;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Date filter */
.date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.date-filter-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.dark .date-filter-btn {
    background: #27272a;
    border-color: #3f3f46;
    color: #d1d5db;
}

.date-filter-btn:hover, .date-filter-btn.active {
    background-color: #22c55e;
    border-color: #22c55e;
    color: white;
}

/* Responsive grid */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid-stats {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.dark .empty-state {
    color: #9ca3af;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: #111827;
    color: white;
    font-size: 0.875rem;
    z-index: 100;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #22c55e;
}

.toast.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #27272a;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #52525b;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #71717a;
}
