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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Navegação por abas */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    background: #ecf0f1;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Conteúdo das abas */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* Calendário */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.calendar-header h2 {
    color: #2c3e50;
    font-size: 2em;
}

.nav-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    background: #2980b9;
    transform: scale(1.1);
}

.nav-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.calendar-day-header {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #bdc3c7;
}

.calendar-day.today {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.day-campaigns {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-item {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.campaign-item:hover {
    opacity: 0.8;
}

.campaign-item.marketplace {
    background: #e74c3c;
}

.campaign-item.site {
    background: #27ae60;
}

.campaign-item.venda-direta {
    background: #f39c12;
}

.campaign-item.multiple {
    background: linear-gradient(45deg, #e74c3c, #27ae60, #f39c12);
}

/* Legenda */
.legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.legend h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-item.marketplace .color-box {
    background: #e74c3c;
}

.legend-item.site .color-box {
    background: #27ae60;
}

.legend-item.venda-direta .color-box {
    background: #f39c12;
}

.legend-item.multiple .color-box {
    background: linear-gradient(45deg, #e74c3c, #27ae60, #f39c12);
}

/* Campanhas */
.campaigns-container {
    display: grid;
    gap: 20px;
}

.week-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.week-title {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaign-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.campaign-card.marketplace {
    border-left-color: #e74c3c;
}

.campaign-card.site {
    border-left-color: #27ae60;
}

.campaign-card.venda-direta {
    border-left-color: #f39c12;
}

.campaign-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.campaign-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.campaign-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.campaign-meta span {
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
}

.campaign-description {
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.campaign-actions {
    display: flex;
    gap: 10px;
}

/* Editor */
.editor-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-danger:hover {
    background: #c0392b;
}

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

/* Formulários */
.campaign-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.campaign-form h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.campaign-details {
    margin: 20px 0;
}

.campaign-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-aprovado {
    background: #d4edda;
    color: #155724;
}

.status-aguardando-aprovacao {
    background: #fff3cd;
    color: #856404;
}

.status-reprovado {
    background: #f8d7da;
    color: #721c24;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.login-header p {
    color: #7f8c8d;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: #2980b9;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

.login-footer {
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Instruções do editor */
.editor-instructions {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.editor-instructions h3 {
    color: #0c5460;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-instructions p {
    color: #0c5460;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .calendar-grid {
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .editor-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .campaign-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .logout-btn {
        position: static;
        margin-top: 10px;
    }
    
    .header {
        text-align: center;
    }
}


/* Filtros do Calendário */
.calendar-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.calendar-filters h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.filter-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Responsividade para filtros */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Melhorias no calendário */
.calendar-day.filtered-out {
    opacity: 0.3;
    pointer-events: none;
}

.calendar-day.filtered-out .campaign-item {
    display: none;
}

/* Indicador de campanhas filtradas */
.calendar-day.has-filtered-campaigns::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ffc107;
    border-radius: 50%;
    border: 1px solid white;
}


/* Modal de Gerenciamento de Canais */
.channels-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.channels-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.channel-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #dee2e6;
}

.channel-details h5 {
    margin: 0;
    color: #495057;
    font-size: 1em;
}

.channel-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85em;
}

.channel-actions {
    display: flex;
    gap: 8px;
}

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

.add-channel-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.add-channel-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

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

.add-channel-form label {
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

.add-channel-form input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
}

.add-channel-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.add-channel-form input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

/* Responsividade para o modal de canais */
@media (max-width: 768px) {
    .add-channel-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .channel-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .channel-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
}

/* Indicador de canal personalizado */
.custom-channel-indicator {
    position: relative;
}

.custom-channel-indicator::after {
    content: '★';
    position: absolute;
    top: -2px;
    right: -2px;
    color: #ffc107;
    font-size: 0.7em;
}


/* Seções do Formulário de Campanha */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.1em;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

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

.form-section label {
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

.form-section input,
.form-section select,
.form-section textarea {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: white;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-section textarea {
    resize: vertical;
    min-height: 80px;
}

/* Status badges no formulário */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-indicator.aprovado {
    background: #d4edda;
    color: #155724;
}

.status-indicator.reprovado {
    background: #f8d7da;
    color: #721c24;
}

.status-indicator.aguardando-aprovacao {
    background: #fff3cd;
    color: #856404;
}

/* Melhorias nos cards de campanha */
.campaign-card .campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.campaign-card .campaign-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.campaign-card .budget-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85em;
}

.campaign-card .results-preview {
    margin: 10px 0;
    padding: 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85em;
}

.campaign-card .results-preview h6 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 0.8em;
    font-weight: 600;
}

.campaign-card .results-preview p {
    margin: 0;
    color: #6c757d;
    line-height: 1.3;
}

/* Responsividade para formulário */
@media (max-width: 768px) {
    .form-section .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .campaign-card .budget-info {
        flex-direction: column;
        gap: 5px;
    }
}


/* Dashboard de Resultados */
.dashboard {
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-header h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.dashboard-header p {
    color: #6c757d;
    font-size: 1.1em;
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-card.total {
    border-left-color: #007bff;
}

.stat-card.budget {
    border-left-color: #28a745;
}

.stat-card.efficiency {
    border-left-color: #ffc107;
}

.stat-card.approved {
    border-left-color: #17a2b8;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.stat-card.total .stat-icon {
    background: #007bff;
}

.stat-card.budget .stat-icon {
    background: #28a745;
}

.stat-card.efficiency .stat-icon {
    background: #ffc107;
}

.stat-card.approved .stat-icon {
    background: #17a2b8;
}

.stat-content h4 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-detail {
    color: #6c757d;
    font-size: 0.85em;
}

/* Seções do Dashboard */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-section h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Gráficos de Barras */
.chart-bars,
.status-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-bar,
.status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 120px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9em;
}

.bar-container {
    flex: 1;
    height: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bar-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 0.8s ease;
    min-width: 2px;
}

.bar-value {
    position: absolute;
    right: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 0.85em;
    z-index: 2;
}

/* Cards de Resumo */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007bff;
}

.summary-card h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1em;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9em;
}

.stat-value {
    color: #495057;
    font-weight: 600;
    font-size: 0.9em;
}

/* Top Campanhas */
.top-campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-campaign-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.campaign-info h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1em;
}

.campaign-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.channel-badge,
.week-badge,
.budget-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    color: white;
}

.channel-badge {
    /* Cor definida inline */
}

.week-badge {
    background: #6c757d;
}

.budget-badge {
    background: #28a745;
}

.campaign-results {
    margin-top: 10px;
}

.campaign-results strong {
    color: #495057;
    font-size: 0.9em;
}

.campaign-results p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 0.85em;
    line-height: 1.4;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Responsividade do Dashboard */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .chart-bar,
    .status-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .bar-label {
        min-width: auto;
        text-align: center;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .campaign-details {
        justify-content: center;
    }
}


/* ===== MELHORIAS DE DESIGN PROFISSIONAL ===== */

/* Animações e Transições Globais */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradientes e Sombras Modernas */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Melhorado */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Navegação por Abas Melhorada */
.tabs {
    background: white;
    border-radius: 16px;
    padding: 8px;
    margin: 20px 0;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.tab-button:hover {
    color: #374151;
    transform: translateY(-1px);
}

.tab-button:hover::before {
    opacity: 0.1;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 
        0 4px 14px 0 rgba(102, 126, 234, 0.4),
        0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab-button.active::before {
    opacity: 0;
}

/* Cards e Containers Melhorados */
.campaign-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.campaign-card:hover::before {
    width: 8px;
}

/* Botões Melhorados */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(107, 114, 128, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.5);
}

/* Calendário Melhorado */
.calendar-grid {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    overflow: hidden;
}

.calendar-day {
    background: #f9fafb;
    border-radius: 8px;
    min-height: 100px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f3f4f6;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.calendar-day.today .day-number {
    color: white;
    font-weight: bold;
}

/* Modais Melhorados */
.modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Formulários Melhorados */
.form-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.form-section input,
.form-section select,
.form-section textarea {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Animações de Loading */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Micro-interações */
.campaign-item {
    transition: all 0.2s ease;
}

.campaign-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .header {
        border-radius: 16px 16px 0 0;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        justify-content: center;
        width: 100%;
    }
}

/* Efeitos de Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Indicadores de Status Melhorados */
.status-indicator {
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Melhorias no Dashboard */
.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:hover {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

/* Efeitos de Hover Avançados */
.interactive-element {
    position: relative;
    overflow: hidden;
}

.interactive-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
    pointer-events: none;
}

.interactive-element:hover::after {
    width: 200px;
    height: 200px;
}

