/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
.kpi-grid, .charts-grid, .table-container, .main-header {
    max-width: 100%;
    overflow-x: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

html {
    max-width: 100vw;
}

/* Layout Principal */
.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: auto;
}

/* Connection Status Notification */
.connection-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.connection-notification.online {
    background-color: #10b981;
}

.connection-notification.offline {
    background-color: #ef4444;
}

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

/* Login Instructions Overlay */
.login-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.login-instructions-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-instructions h3 {
    color: #1877f2;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.login-instructions p {
    color: #65676b;
    margin-bottom: 1rem;
}

.login-instructions ul {
    text-align: left;
    color: #65676b;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.login-instructions li {
    margin-bottom: 0.5rem;
}

.login-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #1877f2;
    font-weight: 500;
}

.login-progress .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e4e6ea;
    border-top: 2px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Popup Warning Styles */
.popup-warning, .manual-token-modal, .redirect-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.3s ease-out;
}

.popup-warning-content, .manual-token-content, .redirect-message-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.warning-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.popup-warning h3, .manual-token-modal h3, .redirect-message h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    text-align: center;
}

.warning-steps ol {
    text-align: left;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.warning-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.warning-actions, .manual-token-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dadf;
}

.manual-token-modal input {
    font-family: monospace;
    font-size: 0.9rem;
}

.manual-token-modal small {
    color: #65676b;
    font-style: italic;
}

.redirect-message-content {
    text-align: center;
}

.redirect-message h3 {
    color: #42b883;
}

/* App Creation Modal */
.app-creation-modal, .quick-start-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10006;
    animation: fadeIn 0.3s ease-out;
}

.creation-modal-content, .quick-start-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.creation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #4267B2, #5B87C8);
    color: white;
    border-radius: 12px 12px 0 0;
}

.creation-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.step-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.current-step {
    font-weight: bold;
    font-size: 1.1rem;
}

.creation-body {
    padding: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 80px;
    transition: all 0.2s;
}

.step-dot.completed .step-number {
    background: #28a745;
    color: white;
}

.step-dot.current .step-number {
    background: #4267B2;
    color: white;
    box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.3);
}

.step-dot.pending .step-number {
    background: #e9ecef;
    color: #6c757d;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.step-title {
    font-size: 0.8rem;
    text-align: center;
    color: #495057;
    line-height: 1.2;
}

.step-content {
    min-height: 400px;
    margin-bottom: 2rem;
}

.step-header h3 {
    color: #1c1e21;
    margin-bottom: 1rem;
}

.step-description {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.action-list {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.action-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #495057;
}

.copy-fields {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.copy-field {
    margin-bottom: 1rem;
}

.copy-field:last-child {
    margin-bottom: 0;
}

.copy-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1c1e21;
}

.copy-value {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-family: monospace;
}

.copy-value:hover {
    border-color: #4267B2;
    background: #f0f8ff;
}

.copy-hint {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-value:hover .copy-hint {
    opacity: 1;
}

.copy-field small {
    display: block;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
}

.input-field {
    margin: 1.5rem 0;
}

.input-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1c1e21;
}

.step-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    font-family: monospace;
    transition: border-color 0.2s;
}

.step-input:focus {
    outline: none;
    border-color: #4267B2;
}

.input-validation {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.input-validation.success {
    background: #d4edda;
    color: #155724;
}

.input-validation.error {
    background: #f8d7da;
    color: #721c24;
}

.test-commands {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.test-command {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.test-command:last-child {
    margin-bottom: 0;
}

.test-command code {
    flex: 1;
    font-family: monospace;
    background: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.test-command code:hover {
    background: #e9ecef;
}

.execute-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.execute-btn:hover {
    background: #218838;
}

.step-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tips-list {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.tips-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #856404;
}

.verification-link {
    text-align: center;
    margin: 2rem 0;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.step-navigation .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.step-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-navigation .btn-primary {
    background: #4267B2;
    color: white;
}

.step-navigation .btn-primary:hover:not(:disabled) {
    background: #365899;
    transform: translateY(-1px);
}

.step-navigation .btn-secondary {
    background: #6c757d;
    color: white;
}

.step-navigation .btn-secondary:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-1px);
}

/* Quick Start Modal */
.quick-start-content {
    max-width: 600px;
    text-align: center;
    padding: 2rem;
}

.quick-start-content h2 {
    color: #4267B2;
    margin-bottom: 1rem;
}

.quick-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.option-btn {
    padding: 1.5rem;
    border: 2px solid;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn.primary {
    border-color: #4267B2;
    color: #4267B2;
}

.option-btn.primary:hover {
    background: #4267B2;
    color: white;
    transform: translateY(-2px);
}

.option-btn.secondary {
    border-color: #28a745;
    color: #28a745;
}

.option-btn.secondary:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

.option-btn.tertiary {
    border-color: #ffc107;
    color: #856404;
}

.option-btn.tertiary:hover {
    background: #ffc107;
    color: #856404;
    transform: translateY(-2px);
}

.option-btn small {
    opacity: 0.8;
    font-size: 0.9rem;
}

.close-quick {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
}

.close-quick:hover {
    background: #545b62;
}

@media (max-width: 768px) {
    .creation-modal-content, .quick-start-content {
        width: 98%;
        margin: 1%;
    }
    
    .creation-header, .creation-body {
        padding: 1rem;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-dot {
        min-width: 60px;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .test-command {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-options {
        gap: 0.75rem;
    }
    
    .option-btn {
        padding: 1rem;
    }
}

/* Production Debug Modal */
.production-debug-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    animation: fadeIn 0.3s ease-out;
}

.debug-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px 12px 0 0;
}

.debug-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.debug-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.debug-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.debug-body {
    padding: 2rem;
}

.debug-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.debug-summary h3 {
    margin: 0 0 1rem 0;
    color: #1c1e21;
}

.debug-summary code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.debug-tests {
    margin-bottom: 2rem;
}

.debug-tests h3 {
    color: #1c1e21;
    margin-bottom: 1.5rem;
}

.debug-test-result {
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.debug-test-result.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #ffffff);
}

.debug-test-result.failed {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #ffffff);
}

.debug-test-result.skipped {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.debug-test-result h4 {
    margin: 0 0 1rem 0;
    color: #1c1e21;
}

.debug-test-result .error {
    color: #dc3545;
    font-weight: 600;
    margin: 0.5rem 0;
}

.debug-test-result .details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 1rem 0 0 0;
    max-height: 200px;
}

.debug-recommendations {
    margin-bottom: 2rem;
}

.debug-recommendations h3 {
    color: #1c1e21;
    margin-bottom: 1.5rem;
}

.recommendation {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.recommendation.critical {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #ffffff);
}

.recommendation.high {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, #ffeaa7, #ffffff);
}

.recommendation.medium {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.recommendation h4 {
    margin: 0 0 1rem 0;
    color: #1c1e21;
}

.recommendation p {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #495057;
}

.debug-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e6ea;
}

.debug-actions .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.debug-actions .btn-primary {
    background: #007bff;
    color: white;
}

.debug-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.debug-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.debug-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .debug-modal-content {
        width: 98%;
        margin: 1%;
    }
    
    .debug-header, .debug-body {
        padding: 1rem;
    }
    
    .debug-actions {
        flex-direction: column;
    }
    
    .debug-test-result .details {
        font-size: 0.75rem;
    }
}

/* Facebook App Status Modal */
.app-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10004;
    animation: fadeIn 0.3s ease-out;
}

.app-status-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    color: white;
    border-radius: 12px 12px 0 0;
}

.status-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.status-body {
    padding: 2rem;
}

.status-description {
    margin-bottom: 2rem;
}

.status-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1c1e21;
    margin-bottom: 1rem;
}

.app-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    border-left: 4px solid #1877f2;
}

.solutions-container h3 {
    color: #1c1e21;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.solution-card {
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.solution-card.primary {
    border-color: #1877f2;
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
}

.solution-card.secondary {
    border-color: #e4e6ea;
    background: #fafbfc;
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.solution-card h4 {
    color: #1c1e21;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.solution-steps {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.solution-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #65676b;
}

.solution-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dadf;
    transform: translateY(-1px);
}

.status-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e6ea;
    text-align: center;
}

.status-footer small {
    color: #65676b;
    line-height: 1.5;
}

/* Demo Mode Message */
.demo-mode-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    animation: fadeIn 0.3s ease-out;
}

.demo-message-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.demo-message-content h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

.demo-message-content p {
    color: #65676b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .app-status-content {
        width: 98%;
        margin: 1%;
    }
    
    .status-header, .status-body {
        padding: 1rem;
    }
    
    .solution-actions {
        flex-direction: column;
    }
    
    .solutions-container {
        margin-top: 1rem;
    }
}

/* Facebook Configuration Modal */
.facebook-config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    animation: fadeIn 0.3s ease-out;
}

.facebook-config-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e4e6ea;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border-radius: 12px 12px 0 0;
}

.config-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.current-domain {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e4e6ea;
}

.current-domain h3 {
    margin: 0 0 1rem 0;
    color: #1c1e21;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.domain-info strong {
    font-size: 1.1rem;
    color: #1877f2;
    font-family: monospace;
}

.env-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.env-badge.production {
    background: #d4edda;
    color: #155724;
}

.env-badge.development {
    background: #fff3cd;
    color: #856404;
}

.config-steps {
    padding: 1.5rem 2rem;
}

.config-step {
    display: flex;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1877f2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1c1e21;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0 0 1rem 0;
    color: #65676b;
    line-height: 1.5;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.step-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-family: monospace;
    font-size: 0.9rem;
    color: #1c1e21;
}

.step-details li:before {
    content: "•";
    color: #1877f2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.config-copy {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e4e6ea;
}

.config-copy h3 {
    margin: 0 0 1.5rem 0;
    color: #1c1e21;
}

.copy-section {
    margin-bottom: 1rem;
}

.copy-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1c1e21;
}

.copy-value {
    background: white;
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.copy-value:hover {
    border-color: #1877f2;
    background: #f0f8ff;
}

.copy-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #65676b;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-value:hover .copy-hint {
    opacity: 1;
}

.config-actions {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #e4e6ea;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dadf;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .facebook-config-content {
        width: 98%;
        margin: 1%;
    }
    
    .config-header {
        padding: 1rem;
    }
    
    .config-header h2 {
        font-size: 1.2rem;
    }
    
    .current-domain, .config-steps, .config-copy, .config-actions {
        padding: 1rem;
    }
    
    .config-step {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .config-actions {
        flex-direction: column;
    }
}

/* Sidebar */
.sidebar {
    width: 160px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-right: 1px solid #e2e8f0;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 140px;
    height: 70px;
    object-fit: contain;
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.nav-link:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.nav-item.active .nav-link {
    background-color: #000000;
    color: white;
    border-right: 3px solid #000000;
}

.nav-link i {
    width: 20px;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-left: 160px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 160px);
    overflow-x: auto;
}

.main-header {
    background: white;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.api-mode-toggle,
.campaign-filter,
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.api-mode-toggle {
    background: #e0f2fe;
    border: 1px solid #0891b2;
}

.api-mode-toggle i {
    color: #0891b2;
}

.campaign-filter {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}

.campaign-filter i,
.date-range-picker i {
    color: #64748b;
}

.campaign-filter select,
.date-range-picker select {
    border: none;
    background: none;
    outline: none;
    color: #334155;
    font-weight: 500;
}

/* Custom Date Picker Styles */
.custom-date-picker {
    display: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #1877f2;
}

.custom-date-picker.show {
    display: block;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.date-input-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.date-input {
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    outline: none;
    font-size: 0.8rem;
    color: #374151;
    width: 130px;
    background: #fafafa;
}

.date-input:focus {
    border-color: #1877f2;
    background: white;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

.apply-date-btn {
    padding: 0.375rem 0.75rem;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.apply-date-btn:hover {
    background: #166fe5;
}

.apply-date-btn i {
    font-size: 0.7rem;
}



.refresh-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background: #333333;
}

.facebook-connect-btn {
    background: #1877f2 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3) !important;
}

.facebook-connect-btn:hover {
    background: #166fe5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4) !important;
}

.facebook-connect-btn i {
    font-size: 1rem !important;
}

.facebook-connect-btn.connected {
    background: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.facebook-connect-btn.connected:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.account-selector-header-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    max-width: 200px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.account-selector-header-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.account-selector-header-btn i {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}

.filters-header-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.filters-header-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

.filters-header-btn i {
    font-size: 1rem !important;
}

/* Reset completo para botões do cabeçalho */
button.account-selector-header-btn,
button.filters-header-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: white !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    user-select: none !important;
}

button.account-selector-header-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

button.filters-header-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

button.account-selector-header-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

button.filters-header-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.ad-accounts-selector-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

.ad-accounts-selector-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

.ad-accounts-selector-btn i {
    font-size: 1rem !important;
}

.ad-accounts-selector-btn.disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.ad-accounts-selector-btn.disabled:hover {
    transform: none !important;
    background: #9ca3af !important;
}

/* Reset para botão de contas de anúncios */
button.ad-accounts-selector-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: white !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    user-select: none !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

button.ad-accounts-selector-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

/* Animações para notificações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Responsividade para botões do cabeçalho */
@media (max-width: 768px) {
    .account-selector-header-btn {
        max-width: 150px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .filters-header-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ad-accounts-selector-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .facebook-connect-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .account-selector-header-btn span,
    .filters-header-btn span,
    .ad-accounts-selector-btn span,
    .facebook-connect-btn span {
        display: none;
    }
    
    .account-selector-header-btn,
    .filters-header-btn,
    .ad-accounts-selector-btn,
    .facebook-connect-btn {
        min-width: 40px;
        justify-content: center;
        padding: 0.5rem;
    }
}

.facebook-login-btn {
    background: #1877f2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facebook-login-btn:hover {
    background: #166fe5;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.user-menu:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-name {
    font-weight: 500;
    color: #334155;
}

/* Content Area */
.content-area {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* KPI Section */
.kpi-section {
    margin-bottom: 1.5rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .kpi-card {
        padding: 0.875rem 0.75rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .content-area {
        padding: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
    
    .menu-toggle {
        display: block;
    }
}

.kpi-card {
    background: white;
    padding: 1rem 0.875rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Gradientes específicos para cada card */
.kpi-card:nth-child(1) .kpi-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.kpi-card:nth-child(2) .kpi-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.kpi-card:nth-child(3) .kpi-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.kpi-card:nth-child(4) .kpi-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.kpi-card:nth-child(5) .kpi-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.kpi-card:nth-child(6) .kpi-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.kpi-card:nth-child(7) .kpi-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.kpi-card:nth-child(8) .kpi-icon {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.kpi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-info h3 {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.3rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.kpi-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #10B981;
}

.kpi-change::before {
    content: "↗";
    font-size: 1rem;
    font-weight: 700;
}

.kpi-change.negative {
    color: #EF4444;
}

.kpi-change.negative::before {
    content: "↘";
}

/* Charts Section */
.charts-section {
    margin-bottom: 1.25rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.chart-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: fit-content;
}

.chart-container canvas {
    max-height: 400px !important;
    height: 400px !important;
    width: 100% !important;
}

/* Específico para o gráfico de performance */
#performanceChart {
    max-height: 280px !important;
    height: 280px !important;
}

/* Container do gráfico de performance */
.charts-grid .chart-container:first-child {
    max-height: 380px;
    overflow: hidden;
}

.charts-grid .chart-container:first-child canvas {
    padding: 0.75rem;
    display: block;
}

.chart-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.chart-btn:hover {
    background: #f8fafc;
}

.chart-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.chart-container canvas {
    padding: 1rem;
}

/* Tables Section */
.tables-section {
    margin-bottom: 1rem;
}

.table-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
    overflow-x: auto;
}

.table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    color: #64748b;
}

.search-box input {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    outline: none;
    font-size: 0.875rem;
    width: 100%;
    max-width: 250px;
}

.search-box input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.export-btn {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background: #059669;
}


.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    background: #f8fafc;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.status-badge.paused {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.inactive {
    background: #fecaca;
    color: #dc2626;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f8fafc;
    color: #000000;
}

.table-pagination {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f8fafc;
    color: #000000;
}

.pagination-pages {
    padding: 0.375rem 0.75rem;
    background: #000000;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    max-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-left: 4px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ajustar altura em telas menores */
    #performanceChart {
        max-height: 300px !important;
        height: 300px !important;
    }
    
    .charts-grid .chart-container:first-child {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .main-header {
        padding: 1rem;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .chart-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

.error-content i {
    color: #ef4444;
    font-size: 1.1rem;
}

.error-content button {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin-left: auto;
}

.error-content button:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #047857;
    font-weight: 500;
}

.success-content i {
    color: #10b981;
    font-size: 1.1rem;
}

.success-content button {
    background: none;
    border: none;
    color: #047857;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin-left: auto;
}

.success-content button:hover {
    background: rgba(16, 185, 129, 0.1);
}

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

/* Animações */
.kpi-card, .chart-container, .table-container {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-content {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.config-section {
    margin-bottom: 1.5rem;
}

.config-section label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.config-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.config-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.config-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.config-help a {
    color: #1877f2;
    text-decoration: none;
}

.config-help a:hover {
    text-decoration: underline;
}

.config-instructions {
    padding-left: 1.25rem;
    color: #4b5563;
}

.config-instructions li {
    margin-bottom: 0.5rem;
}

.config-instructions code {
    background: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
}

.config-status {
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    white-space: pre-line;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.config-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.config-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.config-status.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-primary {
    background: #1877f2;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.config-btn {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.config-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Error and Success Notifications */
.error-notification, .success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

.error-notification {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.success-notification {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.error-content, .success-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.error-content {
    color: #dc2626;
}

.success-content {
    color: #166534;
}

.error-content button, .success-content button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.error-content button:hover, .success-content button:hover {
    background: rgba(0, 0, 0, 0.1);
}

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

/* API Mode Selector */
.api-mode-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    max-width: 200px;
}

.mode-select:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

.mode-select:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

/* Facebook Login Button */
.facebook-login-btn {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default, controlled by JavaScript */
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
    position: relative;
    overflow: hidden;
}

/* Força exibição quando no modo API real */
.facebook-login-btn.api-real-mode {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Estilo para modo visível */
.facebook-login-btn.visible {
    display: flex !important;
}

.facebook-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.facebook-login-btn:hover::before {
    left: 100%;
}

.facebook-login-btn .btn-text {
    position: relative;
    z-index: 1;
}

.facebook-login-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.facebook-login-btn:active {
    transform: translateY(0);
}

/* Facebook Button Highlight Animation */
.facebook-btn-highlight {
    animation: fbButtonPulse 2s infinite;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6) !important;
}

@keyframes fbButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(24, 119, 242, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    }
}

/* Connect Notification */
.connect-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 10000;
    animation: slideInNotification 0.5s ease-out;
}

.connect-notification-content {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-notification-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.4);
}

.connect-notification-content i.fab {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    min-width: 48px;
    text-align: center;
}

.notification-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.notification-text p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-indicator.connected {
    background: #dcfce7;
    color: #166534;
}

.status-indicator.disconnected {
    background: #fef2f2;
    color: #dc2626;
}

.status-indicator.demo {
    background: #e0e7ff;
    color: #3730a3;
}

/* API Status Improvements */
.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.api-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    padding: 0;
    background: transparent;
}

.api-status .status-indicator.demo {
    background-color: #10b981;
}

.api-status .status-indicator.real-connected {
    background-color: #3b82f6;
}

.api-status .status-indicator.real-disconnected {
    background-color: #ef4444;
}

.api-status .status-indicator.connecting {
    background-color: #f59e0b;
}

/* Modal Content Overrides */
.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
}

.modal-overlay .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f9fafb;
}

.modal-overlay .modal-body {
    padding: 1.5rem;
}

.modal-overlay .modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f9fafb;
}

/* Input Group Styles */
.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.test-connection-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-connection-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Accounts List */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-item:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.account-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.account-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.account-details {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Business Manager and Account Selectors */
.business-manager-selector,
.account-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-manager-selector select,
.account-selector select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    max-width: 220px;
}

.business-manager-selector select:hover,
.account-selector select:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

.business-manager-selector select:focus,
.account-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Advanced Filters Button */
.advanced-filters-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.advanced-filters-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Advanced Filters Modal */
.advanced-filters-modal {
    max-width: 800px;
    width: 95%;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.filter-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.campaign-filter, .date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.campaign-filter i, .date-range-picker i {
    color: #6b7280;
    font-size: 0.9rem;
}

.campaign-filter select, .date-range-picker select {
    border: none;
    background: transparent;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.filter-section h4 {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* Date Range Groups */
.date-range-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.date-range-group label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.date-range-group input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Range Groups */
.range-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.range-group label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.range-group input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Search Groups */
.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-group input[type="text"] {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-filters-modal {
        width: 98%;
        margin: 1rem;
    }
    
    .business-manager-selector,
    .account-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .business-manager-selector select,
    .account-selector select {
        min-width: auto;
        width: 100%;
    }
}