/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Paleta de cores para tema escuro */
:root {
    --primary-blue: rgb(0, 74, 173);
    --primary-blue-dark: rgb(0, 55, 130);
    --primary-blue-light: rgb(25, 100, 200);
    --secondary-blue: rgb(30, 80, 150);
    --accent-blue: rgb(100, 150, 220);
    --light-blue: rgb(200, 220, 250);
    --dark-blue: rgb(10, 30, 60);
    --success-green: rgb(76, 175, 80);
    --warning-orange: rgb(255, 152, 0);
    --error-red: rgb(244, 67, 54);
    
    /* Cores para tema escuro */
    --bg-primary: rgb(0, 0, 0);
    --bg-secondary: rgb(15, 15, 15);
    --bg-card: rgb(20, 20, 20);
    --bg-hover: rgb(30, 30, 30);
    --text-primary: rgb(255, 255, 255);
    --text-secondary: rgb(200, 200, 200);
    --text-muted: rgb(150, 150, 150);
    --border-light: rgb(40, 40, 40);
    --border-medium: rgb(60, 60, 60);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-strong: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header h1 i {
    margin-right: 12px;
    color: var(--primary-blue);
}

.controls {
    display: flex;
    gap: 10px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-blue);
}

.mobile-menu-btn i {
    font-size: 18px;
}

/* Botões */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.25);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-success {
    background: var(--success-green);
    color: white;
    border: 1px solid var(--success-green);
}

.btn-success:hover {
    background: rgb(69, 160, 73);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.btn-info {
    background: var(--accent-blue);
    color: white;
    border: 1px solid var(--accent-blue);
}

.btn-info:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 150, 220, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.3);
}

/* Dashboard Layout */
.dashboard {
    min-height: calc(100vh - 120px);
}

/* Database Info Bar */
.database-info-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.database-info-section h4 {
    margin-bottom: 16px;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.database-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.database-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px var(--shadow-light);
    color: var(--text-secondary);
}

.database-item:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    color: var(--text-primary);
}

.database-item.active {
    border-color: var(--primary-blue);
    background: rgba(0, 74, 173, 0.2);
    color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.3);
}

.database-item .name {
    font-weight: 600;
}

.database-item .status {
    font-size: 12px;
    opacity: 0.8;
}

.database-item .status.connected {
    color: var(--success-green);
    font-weight: bold;
}

.database-item .status.disconnected {
    color: var(--error-red);
    font-weight: bold;
}


/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Filters */
.filters-container {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group label {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0;
}

.filter-group .form-control {
    margin-bottom: 0;
    min-width: 150px;
}

.filter-group .btn {
    margin-bottom: 0;
    white-space: nowrap;
}

.filters {
    margin-top: 20px;
}

/* Main Content */
.main-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    background: var(--bg-card);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 74, 173, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 74, 173, 0.3);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Data Section */
.data-section {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary-blue);
    font-weight: 600;
}

.view-controls {
    display: flex;
    gap: 10px;
}

/* Data Container */
.data-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--accent-blue);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

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

.data-table th {
    background: rgba(0, 74, 173, 0.2);
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 14px;
}

.data-table tr:hover {
    background: var(--bg-hover);
}

/* Database Source Badge */
.db-source {
    display: inline-block;
    background: rgba(0, 74, 173, 0.2);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
    border: 1px solid rgba(0, 74, 173, 0.3);
}


/* Mobile First - Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    /* Header Mobile */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 16px 20px;
        margin-bottom: 16px;
    }
    
    .header-content {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        display: none; /* Hidden by default on mobile */
    }
    
    .controls.mobile-open {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
    }
    
    /* Stats Cards Mobile */
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .stat-info p {
        font-size: 13px;
    }
    
    /* Database List Mobile */
    .database-list-horizontal {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .database-item {
        padding: 8px 12px;
        font-size: 12px;
        flex-direction: column;
        text-align: center;
        min-width: 100px;
        flex: 0 0 auto;
    }
    
    /* Hide database info bar on mobile */
    .database-info-bar {
        display: none;
    }
    
    /* Mobile database info */
    .database-info-mobile {
        background: var(--bg-card);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 8px var(--shadow-light);
    }
    
    .database-info-mobile h4 {
        margin-bottom: 12px;
        color: var(--primary-blue);
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Filters Mobile */
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-group .form-control {
        min-width: auto;
        font-size: 14px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box .form-control {
        margin-bottom: 0;
        font-size: 14px;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 16px;
    }
    
    /* Companies Table Mobile */
    .companies-table {
        display: none; /* Hide table on mobile */
    }
    
    .companies-mobile-view {
        display: block;
    }
    
    /* Mobile Cards for Companies */
    .company-mobile-card {
        background: var(--bg-card);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 8px var(--shadow-light);
    }
    
    .company-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .company-mobile-name {
        font-weight: 600;
        color: var(--primary-blue);
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .company-mobile-status {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
    }
    
    .company-mobile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .company-mobile-detail {
        font-size: 12px;
        color: var(--text-muted);
    }
    
    .company-mobile-detail strong {
        color: var(--text-primary);
        display: block;
        margin-bottom: 2px;
    }
    
    .company-mobile-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border-light);
    }
    
    .company-mobile-database {
        background: rgba(0, 74, 173, 0.2);
        color: var(--accent-blue);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
    }
    
    /* Summary Cards Mobile */
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .summary-card {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Touch Optimizations */
    .btn, .database-item, .company-mobile-card {
        -webkit-tap-highlight-color: rgba(0, 74, 173, 0.2);
        touch-action: manipulation;
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    /* Improved scrolling */
    .companies-container {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile-specific improvements */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Swipe gestures for mobile */
    .company-mobile-card {
        transition: transform 0.2s ease;
    }
    
    .company-mobile-card:active {
        transform: scale(0.98);
    }
    
    /* Mobile-friendly database selection */
    .database-item {
        min-height: 60px;
        justify-content: center;
    }
    
    /* Mobile stats cards with better spacing */
    .stat-card {
        min-height: 80px;
    }
    
    /* Mobile-friendly buttons */
    .btn {
        min-height: 44px;
        border-radius: 8px;
    }
    
    /* Mobile search improvements */
    .search-box .form-control {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Mobile filter improvements */
    .filter-group .form-control {
        font-size: 16px;
        padding: 12px 16px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header {
        padding: 20px 24px;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Hide mobile view on desktop */
@media (min-width: 769px) {
    .companies-mobile-view {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .controls {
        display: flex !important;
    }
    
    .database-info-mobile {
        display: none;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    .company-mobile-card {
        padding: 12px;
    }
    
    .company-mobile-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .database-item {
        min-width: 80px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .companies-container {
        max-height: 60vh;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
}

/* Companies Section */
.companies-section {
    margin-top: 20px;
}

.companies-header {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box .form-control {
    flex: 1;
    margin-bottom: 0;
}

.companies-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.companies-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

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

.companies-table th {
    background: rgba(0, 74, 173, 0.2);
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 14px;
}

.companies-table tr:hover {
    background: var(--bg-hover);
}

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

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.company-details {
    font-size: 12px;
    color: var(--text-muted);
}

/* WhatsApp Count */
.whatsapp-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--success-green);
}

.whatsapp-count i {
    font-size: 16px;
    color: var(--success-green);
}

.count-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--success-green);
}

.whatsapp-mobile-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success-green);
    font-weight: 600;
}

.whatsapp-mobile-count i {
    font-size: 14px;
}

.company-database {
    display: inline-block;
    background: rgba(0, 74, 173, 0.2);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 74, 173, 0.3);
}

.company-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success-green);
    color: white;
    font-weight: bold;
}

.status-badge.inactive {
    background: var(--error-red);
    color: white;
    font-weight: bold;
}

/* Plan Info */
.plan-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

/* Due Date */
.company-due {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.due-date {
    font-weight: 600;
    font-size: 14px;
}

.due-date.current {
    color: var(--success-green);
    font-weight: bold;
}

.due-date.overdue {
    color: var(--error-red);
    font-weight: bold;
}

.due-date.no-date {
    color: var(--warning-orange);
    font-weight: bold;
}

.current-text {
    color: var(--success-green);
    font-size: 11px;
    font-weight: bold;
}

.overdue-text {
    color: var(--error-red);
    font-size: 11px;
    font-weight: bold;
}

.companies-summary {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.companies-summary h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.summary-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.summary-card:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.summary-card strong {
    color: var(--accent-blue);
}

.summary-card span {
    font-size: 14px;
    color: var(--text-muted);
}

.text-success {
    color: var(--success-green) !important;
    font-weight: bold !important;
}

.text-error {
    color: var(--error-red) !important;
    font-weight: bold !important;
}

.data-section-content {
    margin-top: 20px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--accent-blue);
    font-size: 16px;
}

.error {
    text-align: center;
    padding: 40px;
    color: var(--error-red);
    font-size: 16px;
}

.error i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

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

/* Estilos para botão de exportação */
.btn-success {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-success:hover {
    background: rgb(69, 160, 73);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-success:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success:disabled:hover {
    background: var(--text-muted);
    transform: none;
    box-shadow: none;
}

/* Ajustar layout da search-box para incluir botão de exportação */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 200px;
}

.search-box button {
    white-space: nowrap;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

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

.notification.error {
    background: var(--error-red);
}

.notification i {
    font-size: 1.2rem;
}

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

/* Responsividade para notificações e botões */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        min-width: auto;
    }
    
    .search-box button {
        width: 100%;
        justify-content: center;
    }
}
