* {
    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;
    min-width: 320px;
    overflow-x: auto;
}

/* Telas principais */
.screen {
    display: none;
}

.screen.active {
    display: block;
}





/* Dashboard */
#dashboard {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    background: #34495e;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-header i {
    font-size: 24px;
    color: #3498db;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background: #34495e;
}

.menu-item.active {
    background: #3498db;
}

.menu-item i {
    font-size: 18px;
    width: 20px;
}



/* Conteúdo Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: calc(100vw - 280px);
}

.header {
    background: white;
    padding: 25px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.header-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.status.online {
    background: #d4edda;
    color: #155724;
}

.status.online i {
    color: #28a745;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

/* Conteúdo */
.content {
    flex: 1;
    padding: 30px 40px;
    max-width: 100%;
    overflow-x: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.stat-card .fab.fa-whatsapp {
    color: #25d366;
}

.stat-card .fas.fa-users {
    color: #3498db;
}

.stat-card .fas.fa-eye {
    color: #27ae60;
}

.stat-card .fas.fa-clock {
    color: #ff6b6b;
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-label {
    color: #6c757d;
    font-size: 16px;
}

/* Atividade Recente */
.recent-activity {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.recent-activity h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-item i {
    font-size: 24px;
    width: 30px;
}

.activity-item .fab.fa-whatsapp {
    color: #25d366;
}

.activity-item .fas.fa-user-plus {
    color: #3498db;
}

.activity-item .fas.fa-eye {
    color: #27ae60;
}

.activity-content p {
    margin: 0;
}

.activity-time {
    color: #6c757d;
    font-size: 12px;
}



/* Facebook Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.post-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.post-header i {
    font-size: 40px;
    color: #4267B2;
}

.post-header h4 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0;
}

.post-time {
    color: #6c757d;
    font-size: 12px;
}

.post-content {
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-actions {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 14px;
}

.post-actions span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-actions i {
    font-size: 14px;
}

/* Instagram */
.stories-section {
    margin-bottom: 30px;
}

.stories-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.stories-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.story-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.story-item span {
    font-size: 12px;
    color: #6c757d;
}

.posts-grid h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.post-thumbnail {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #ecf0f1;
    cursor: pointer;
    transition: border-color 0.3s;
}

.post-thumbnail:hover {
    border-color: #E4405F;
}

.post-thumbnail i {
    font-size: 30px;
    color: #6c757d;
}

.post-thumbnail span {
    font-size: 12px;
    color: #6c757d;
}

/* Configurações */
.settings-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.settings-panel h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

.setting-item {
    padding: 12px 0;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #2c3e50;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}



/* Monitor WhatsApp */
.monitor-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.monitor-header i {
    font-size: 28px;
    color: #25d366;
}

.monitor-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

/* Formulário de adicionar contato */
.add-contact-form {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
}

.add-contact-form h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-contact-form h4 i {
    color: #25d366;
    font-size: 20px;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #6c757d;
    font-size: 16px;
}

/* Select do país */
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.form-select:hover {
    border-color: #25d366;
}

/* Inputs do formulário */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.form-input:hover {
    border-color: #adb5bd;
}

.form-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Botão novo */
.add-btn-new {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    max-width: 100%;
}

.add-btn-new:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.add-btn-new:active {
    transform: translateY(0);
}

.add-btn-new i {
    font-size: 18px;
}

/* Aviso do formulário */
.form-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-warning i {
    color: #856404;
    font-size: 16px;
}

.form-warning span {
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

/* Estilos para aviso de segurança no formulário */
.security-warning-form {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    position: relative;
}

.security-warning-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #dc3545 100%);
    border-radius: 12px 12px 0 0;
}

.warning-header-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.warning-header-form i {
    color: #dc3545;
    font-size: 18px;
}

.warning-header-form h5 {
    color: #721c24;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
}

.warning-content-form p {
    color: #721c24;
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 13px;
}

.warning-content-form strong {
    color: #5a1a1a;
    font-weight: 700;
}

.warning-highlight-form {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.warning-highlight-form i {
    color: #dc3545;
    font-size: 14px;
}

.warning-highlight-form span {
    color: #721c24;
    font-weight: 600;
    font-size: 12px;
}

/* Campos obrigatórios */
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Formulário desabilitado */
.form-select:disabled,
.form-input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.add-btn-new:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none !important;
    box-shadow: none !important;
}

/* Barra de Progresso de Conexão */
.connection-progress {
    background: #ffffff;
    border: 2px solid #25d366;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    animation: slideInUp 0.5s ease;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-header i {
    color: #25d366;
    font-size: 24px;
    animation: pulse 2s infinite;
}

.progress-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.progress-info {
    margin-bottom: 20px;
}

.progress-info p {
    color: #495057;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

#progress-percentage {
    color: #25d366;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

.connection-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.status-item.checking {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.status-item.success {
    border-left-color: #25d366;
    background: #e8f5e8;
}

.status-item.error {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.status-item i {
    color: #6c757d;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.status-item.checking i {
    color: #ffc107;
    animation: spin 2s linear infinite;
}

.status-item.success i {
    color: #25d366;
}

.status-item.error i {
    color: #dc3545;
}

.status-item span {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.progress-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.progress-warning i {
    color: #856404;
    font-size: 16px;
    margin-top: 2px;
}

.progress-warning span {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .connection-progress {
        padding: 20px;
        margin-top: 15px;
    }
    
    .progress-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .progress-bar-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .connection-status {
        gap: 10px;
    }
    
    .status-item {
        padding: 10px 12px;
    }
}

/* Botão de teste removido */

/* Dica removida */

.input-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: border-color 0.3s ease;
    flex: 1;
    min-width: 450px;
    max-width: 100%;
}

.phone-input-group:focus-within {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Custom Country Selector */
.custom-country-selector {
    position: relative;
    min-width: 280px;
    border-right: 2px solid #e9ecef;
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 15px;
    color: #495057;
    border-radius: 0;
    font-weight: 500;
}

.selected-country:hover {
    background: #e9ecef;
}

.flag-icon {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.country-text {
    font-weight: 600;
    color: #495057;
    min-width: 200px;
    text-align: left;
}

.dropdown-arrow {
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.selected-country.open .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f4;
}

.country-option:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.country-option:active {
    background: #e3f2fd;
}

.country-option:last-child {
    border-bottom: none;
}

/* Country selector responsive */
@media (max-width: 768px) {
    .custom-country-selector {
        min-width: 250px;
    }
    
    .selected-country {
        padding: 14px 16px;
        font-size: 14px;
        gap: 10px;
    }
    
    .country-text {
        font-size: 14px;
        min-width: 180px;
    }
    
    .country-option {
        padding: 14px 16px;
        font-size: 14px;
        gap: 10px;
    }
    
    .flag-icon {
        width: 28px;
        height: 21px;
    }
}

@media (max-width: 480px) {
    .custom-country-selector {
        min-width: 220px;
    }
    
    .selected-country {
        padding: 12px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .country-text {
        font-size: 13px;
        min-width: 160px;
    }
    
    .country-option {
        padding: 12px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .flag-icon {
        width: 26px;
        height: 20px;
    }
}

.phone-input {
    border: none;
    padding: 12px 15px;
    flex: 1;
    font-size: 14px;
    outline: none;
    min-width: 140px;
    background: white;
}

.phone-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.input-container input:not(.phone-input) {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-container input:not(.phone-input):focus {
    outline: none;
    border-color: #25d366;
}

.add-btn {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    background: #1da851;
}

/* Contatos monitorados */
.monitored-contacts {
    margin-bottom: 25px;
}

.monitored-contacts h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-avatar-monitor {
    position: relative;
}

.contact-avatar-monitor .profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-details {
    flex: 1;
}

.contact-details h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-phone {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.contact-about {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #495057;
    font-style: italic;
}

.contact-badges {
    display: flex;
    gap: 8px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.verified-badge i {
    font-size: 10px;
}

.remove-contact {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
}

.remove-contact:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Remover estilos antigos de status */
.contact-status {
    display: none !important;
}

.contact-avatar-monitor {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.profile-picture {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #f0f0f0;
    border: 2px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-picture:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Foto real da API - destaque especial */
.contact-card .api-success ~ .contact-details .profile-picture,
.contact-card .contact-avatar-monitor .profile-picture[src*="whatsapp"],
.contact-card .contact-avatar-monitor .profile-picture[src*="api"],
.real-photo-border {
    border: 3px solid #25d366 !important;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4) !important;
    animation: glowPulse 2s infinite alternate !important;
}

.contact-card .api-success ~ .contact-details .profile-picture:hover,
.contact-card .contact-avatar-monitor .profile-picture[src*="whatsapp"]:hover,
.contact-card .contact-avatar-monitor .profile-picture[src*="api"]:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transform: scale(1.1);
}

/* Indicador de foto real removido */

.profile-picture:error {
    background: #e0e0e0 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/cover;
}

.contact-details h5 {
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
}

.contact-details p {
    color: #6c757d;
    margin: 0;
    font-size: 13px;
}

.contact-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
}

/* Status styles removed - no longer displaying online/offline status */

.remove-contact {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-contact:hover {
    background: #c82333;
}

/* Indicadores de API e WhatsApp */
.api-success {
    color: #28a745;
    font-size: 12px;
    margin-left: 5px;
    position: relative;
}

.api-success::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: #28a745;
    border-radius: 1px;
}

.api-partial {
    color: #ffc107;
    font-size: 12px;
    margin-left: 5px;
    position: relative;
}

.api-partial::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: #ffc107;
    border-radius: 1px;
}

.no-whatsapp {
    color: #dc3545;
    font-size: 12px;
    margin-left: 5px;
}

.no-whatsapp-card {
    border-color: #dc3545;
    background: #fff5f5;
}

.no-whatsapp-text {
    color: #dc3545;
    font-size: 11px;
    font-weight: bold;
    margin: 2px 0 0 0;
}

/* last-seen removido */

.contact-about {
    color: #495057;
    font-size: 11px;
    margin: 5px 0 2px 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #25d366;
}

/* Animação para fotos reais do WhatsApp */
.profile-picture.api-loaded {
    animation: glowPulse 2s ease-in-out infinite alternate;
    border: 2px solid #25d366 !important;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.8), 0 0 30px rgba(37, 211, 102, 0.4);
    }
}

/* ===== ANÁLISE GEOGRÁFICA INTELIGENTE ===== */

/* Header da Análise Geográfica */
.geo-analysis-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.header-subtitle {
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-size: 16px;
}

.tracking-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-pulse {
    color: #4ade80;
    animation: pulse 2s infinite;
    font-size: 12px;
}

/* Controles de Visualização */
.geo-view-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.geo-view-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.geo-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.geo-view-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.geo-view-btn i {
    font-size: 18px;
}

.geo-view-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Conteúdo Principal */
.geo-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Seção do Mapa */
.geo-map-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container-advanced {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    height: 400px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.map-placeholder-advanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6c757d;
}

.map-placeholder-advanced i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #007bff;
}

.map-placeholder-advanced h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.map-placeholder-advanced p {
    margin: 0;
    font-size: 14px;
}

/* Overlay de Estatísticas */
.map-stats-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.map-stats-overlay .stat-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 70px;
}

.map-stats-overlay .stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2px;
}

.map-stats-overlay .stat-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* Controles do Mapa */
.map-controls-panel {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.period-filters, .category-filters {
    display: flex;
    gap: 8px;
}

.period-btn, .category-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.period-btn:hover, .category-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.period-btn.active, .category-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Seção de Insights */
.geo-insights-section {
    display: flex;
    flex-direction: column;
}

.insights-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    height: fit-content;
}

.insights-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-card h3 i {
    color: #007bff;
}

/* Locais Frequentes */
.frequent-locations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.location-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.location-icon.home { background: #28a745; }
.location-icon.work { background: #007bff; }
.location-icon.shopping { background: #ffc107; color: #333; }
.location-icon.restaurant { background: #dc3545; }
.location-icon.gym { background: #6f42c1; }
.location-icon.wifi { background: #17a2b8; }
.location-icon.hotel { background: #fd7e14; }
.location-icon.gas { background: #20c997; }
.location-icon.hospital { background: #e83e8c; }
.location-icon.school { background: #6610f2; }

.location-info {
    flex: 1;
}

.location-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.location-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #6c757d;
}

.location-metrics {
    font-size: 11px;
    color: #007bff;
    font-weight: 500;
}

.location-percentage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.percentage-bar {
    width: 40px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.location-percentage span {
    font-size: 12px;
    font-weight: 600;
    color: #007bff;
}

/* Análise de Mobilidade */
.mobility-analysis {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.mobility-analysis h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobility-analysis h3 i {
    color: #007bff;
}

.mobility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mobility-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobility-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.mobility-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.mobility-data h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.mobility-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 3px;
}

.mobility-trend {
    font-size: 12px;
    font-weight: 500;
}

.mobility-trend.positive { color: #28a745; }
.mobility-trend.negative { color: #dc3545; }
.mobility-trend.neutral { color: #6c757d; }

/* Insights Comportamentais */
.behavioral-insights {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.behavioral-insights h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.behavioral-insights h3 i {
    color: #6f42c1;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-card {
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.insight-card.routine { border-left-color: #28a745; }
.insight-card.weekend { border-left-color: #ffc107; }
.insight-card.anomaly { border-left-color: #dc3545; }

.insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.insight-header i {
    margin-right: 8px;
    color: #007bff;
}

.insight-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.confidence-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-tag.high {
    background: #d4edda;
    color: #155724;
}

.confidence-tag.medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-tag.low {
    background: #f8d7da;
    color: #721c24;
}

.insight-card p {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.insight-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tag.warning {
    background: #fff3cd;
    color: #856404;
}

/* Responsividade */
@media (max-width: 1200px) {
    .geo-main-content {
        grid-template-columns: 1fr;
    }
    
    .mobility-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .geo-analysis-header {
        flex-direction: column;
        text-align: center;
    }
    
    .geo-view-controls {
        justify-content: center;
    }
    
    .map-controls-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .map-stats-overlay {
        position: static;
        justify-content: center;
        margin: 15px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .mobility-grid {
        grid-template-columns: 1fr;
    }
}

/* Tema Escuro para Análise Geográfica */
.dark-theme .geo-analysis-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3a3f4b 100%);
}

.dark-theme .map-container-advanced,
.dark-theme .map-controls-panel,
.dark-theme .insights-card,
.dark-theme .mobility-analysis,
.dark-theme .behavioral-insights {
    background: #2c3e50;
    border-color: #3a3f4b;
}

.dark-theme .map-placeholder-advanced {
    color: #e4e6ea;
}

.dark-theme .map-placeholder-advanced h3 {
    color: #e4e6ea;
}

.dark-theme .period-btn,
.dark-theme .category-btn {
    background: #3a3f4b;
    border-color: #495057;
    color: #e4e6ea;
}

.dark-theme .period-btn:hover,
.dark-theme .category-btn:hover {
    background: #495057;
}

.dark-theme .location-item,
.dark-theme .mobility-card,
.dark-theme .insight-card {
    background: #3a3f4b;
}

.dark-theme .location-item:hover,
.dark-theme .mobility-card:hover,
.dark-theme .insight-card:hover {
    background: #495057;
}

.dark-theme .percentage-bar {
    background: #495057;
}

.dark-theme .tag {
    background: #495057;
    color: #e4e6ea;
}



.business-icon {
    color: #ffc107;
    margin-left: 5px;
    font-size: 12px;
}

/* Loading states */
.add-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



/* Monitor em tempo real */
.real-time-monitor {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    min-height: 520px;
}

.real-time-monitor h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.monitor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.status-indicator .online {
    color: #28a745;
}

.monitored-count {
    color: #6c757d;
    font-size: 13px;
}

/* Mensagens ao vivo */
.live-messages {
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 15px;
    min-height: 400px;
}

.no-messages {
    text-align: center;
    color: #6c757d;
    padding: 60px 20px;
}

.no-messages i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}

.no-messages p {
    margin: 0;
    font-style: italic;
}

.live-message {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.live-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
}

.live-message.new {
    background: #f0fff4;
    border-color: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    transform: translateY(-2px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-icon {
    font-size: 16px;
    background: rgba(37, 211, 102, 0.1);
    padding: 4px 6px;
    border-radius: 6px;
    display: inline-block;
}

.contact-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.message-time {
    color: #6c757d;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.message-content {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.message-content.text {
    background: rgba(37, 211, 102, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #25d366;
}

.message-content.activities {
    background: rgba(255, 193, 7, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    font-style: italic;
}

.message-content.reactions {
    background: rgba(220, 53, 69, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #dc3545;
    font-weight: 600;
}

.message-type {
    color: #6c757d;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    opacity: 0.8;
}

/* Estilos para Análise Histórica */
.analysis-message, .analysis-results {
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    animation: slideInUp 0.6s ease;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.analysis-header i {
    color: #007bff;
    font-size: 20px;
}

.analysis-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.analysis-content p {
    color: #495057;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-progress {
    text-align: center;
    margin: 15px 0;
}

.progress-dots {
    display: inline-flex;
    gap: 8px;
}

.progress-dots .dot {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.progress-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.progress-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

.analysis-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.historical-messages {
    margin: 20px 0;
}

.historical-messages h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.historical-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.historical-item.historical-text {
    border-left-color: #25d366;
}

.historical-item.historical-activity {
    border-left-color: #ffc107;
}

.historical-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.hist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.hist-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.hist-contact {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.hist-time {
    color: #6c757d;
    font-size: 11px;
    margin-left: auto;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
}

.hist-content {
    color: #495057;
    font-size: 13px;
    margin-left: 30px;
    line-height: 1.4;
}

.analysis-notice {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.notice-header h6 {
    margin: 0;
    color: #17a2b8;
    font-size: 16px;
    font-weight: bold;
}

.analysis-notice p {
    margin: 10px 0;
    color: #495057;
    line-height: 1.5;
}

.complete-report-features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.feature-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #007bff;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.feature-title {
    font-weight: 600;
    color: #495057;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.feature-description {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.report-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.report-warning p {
    margin: 5px 0;
    color: #856404;
    font-size: 13px;
}

.report-action {
    text-align: center;
    margin-top: 20px;
}

.btn-complete-report {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 20px 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-complete-report:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
    border-radius: 15px;
}

.btn-complete-report:active {
    transform: translateY(0);
}

.btn-complete-report:disabled {
    background: #28a745 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.report-status {
    animation: slideInUp 0.5s ease-out;
}

.analysis-footer {
    background: #e8f5e8;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #25d366;
}

.analysis-footer p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

/* Animação dos pontos de carregamento */
@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar personalizada para o histórico */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Responsividade */
@media (max-width: 768px) {
    .analysis-message, .analysis-results {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .hist-header {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .hist-time {
        order: 3;
        margin-left: 0;
        margin-top: 5px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Otimizações para telas grandes (Desktop) */
@media (min-width: 1400px) {
    .content {
        padding: 40px 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .stat-card {
        padding: 40px 30px;
    }
    
    .recent-activity {
        padding: 40px;
    }
    
    .add-contact-form {
        max-width: 900px;
        margin: 0 auto;
        padding: 40px;
    }
}

/* Responsivo */
@media (max-width: 1200px) {
    .main-content {
        max-width: calc(100vw - 280px);
    }
    
    .content {
        padding: 25px 30px;
    }
    
    .add-contact-form {
        max-width: 100%;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        flex-shrink: 1;
    }
    
    .main-content {
        order: 1;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .content {
        padding: 15px 10px;
    }
    
    .add-contact-form {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-select,
    .form-input {
        padding: 12px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .add-btn-new {
        padding: 14px;
        font-size: 14px;
    }
    
    .stories-list {
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10px 8px;
    }
    
    .add-contact-form {
        padding: 12px;
        border-radius: 8px;
    }
    
    .add-contact-form h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-select,
    .form-input {
        padding: 12px 10px;
        font-size: 16px;
        border-radius: 4px;
    }
    
    .add-btn-new {
        padding: 12px;
        font-size: 13px;
        border-radius: 4px;
    }
    

    
    .app-simulation {
        padding: 15px;
    }
    
    .chat-item {
        padding: 10px;
    }
    
    .contact-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .contact-avatar-monitor {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .contact-avatar-monitor .profile-picture {
        width: 50px !important;
        height: 50px !important;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .monitor-status {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .live-messages {
        max-height: 350px;
        min-height: 300px;
    }
    
    .sidebar-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ==============================================
   TELA DE LOGIN
   ============================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.login-logo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo i {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.login-logo h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-logo p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-container input {
    width: auto;
    margin: 0;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.security-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==============================================
   MELHORIAS NO SIDEBAR
   ============================================== */

.theme-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.notification-badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
}

/* ==============================================
   HEADER MELHORADO
   ============================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}



.header-notifications {
    position: relative;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notifications-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    display: none;
    z-index: 1000;
}

.notifications-dropdown.show {
    display: block;
    animation: slideInDown 0.3s ease;
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    color: #333;
}

.mark-all-read {
    color: #007bff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mark-all-read:hover {
    color: #0056b3;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid #007bff;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
}

.notification-time {
    color: #999;
    font-size: 0.8rem;
}

.current-time {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==============================================
   CARDS DE ESTATÍSTICAS MELHORADOS
   ============================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 5px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 20px;
    align-items: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-card.primary::before {
    background: linear-gradient(90deg, #25d366, #128c7e);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-card.info::before {
    background: linear-gradient(90deg, #17a2b8, #6610f2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #007bff, #00d4ff);
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #6610f2);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
    line-height: 1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: #28a745;
}

.stat-trend.negative {
    color: #dc3545;
}

.stat-trend.neutral {
    color: #6c757d;
}

.stat-chart {
    width: 100px;
    height: 50px;
}

/* ==============================================
   DASHBOARD VAZIO
   ============================================== */

.empty-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.empty-dashboard:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    position: relative;
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-icon i:first-child {
    color: #007bff;
}

.empty-icon i:last-child {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: #28a745;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.empty-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.empty-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.start-monitoring-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.start-monitoring-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40,167,69,0.4);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.start-monitoring-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.start-monitoring-btn i {
    margin-right: 10px;
}

/* ==============================================
   TOASTS E NOTIFICAÇÕES
   ============================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-left-color: #28a745;
}

.toast.toast-error {
    border-left-color: #dc3545;
}

.toast.toast-warning {
    border-left-color: #ffc107;
}

.toast i {
    margin-right: 10px;
    color: #007bff;
}

.toast-success i {
    color: #28a745;
}

.toast-error i {
    color: #dc3545;
}

.toast-warning i {
    color: #ffc107;
}

/* ==============================================
   ATIVIDADE VAZIA
   ============================================== */

.empty-activity {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-activity i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-activity h4 {
    margin-bottom: 10px;
    color: #495057;
}

.empty-activity p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==============================================
   RESPONSIVIDADE PARA MOBILE
   ============================================== */

@media (max-width: 768px) {
    /* Dashboard responsivo */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px;
    }
    
    .stat-card {
        padding: 15px !important;
        margin: 0;
        min-height: auto;
    }
    
    .stat-card .stat-info h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
        margin: 8px 0 !important;
    }
    
    .stat-trend {
        font-size: 0.75rem !important;
    }
    
    .stat-trend span {
        display: block;
        margin-top: 2px;
    }
    
    .stat-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .stat-chart {
        width: 80px !important;
        height: 40px !important;
    }
    
    /* Estado vazio responsivo */
    .empty-dashboard {
        margin: 10px;
        padding: 20px !important;
        border-radius: 15px;
    }
    
    .empty-content {
        padding: 10px;
    }
    
    .empty-icon {
        font-size: 3rem !important;
        margin-bottom: 15px;
    }
    
    .empty-content h3 {
        font-size: 1.3rem !important;
        margin-bottom: 10px;
    }
    
    .empty-content p {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }
    
    .empty-steps {
        text-align: center;
        gap: 10px;
        margin: 20px 0;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .start-monitoring-btn {
        padding: 12px 25px !important;
        font-size: 1rem !important;
        width: 100%;
        max-width: 300px;
    }
    
    /* Gráficos responsivos */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px;
    }
    
    .chart-container {
        padding: 15px !important;
        height: auto !important;
        min-height: 250px;
    }
    
    /* Atividade recente responsiva */
    .recent-activity {
        margin: 0 10px;
        padding: 15px !important;
    }
    
    .activity-item {
        padding: 10px !important;
        margin-bottom: 8px;
    }
    
    /* Toasts responsivos */
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
    }
    
    /* Header responsivo */
    .page-title h1 {
        font-size: 1.5rem !important;
    }
    
    .breadcrumb {
        font-size: 0.8rem !important;
    }
    
    /* Sidebar responsivo */
    .sidebar {
        transform: translateX(-100%) !important;
    }
    
    .content {
        margin-left: 0 !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .stat-card {
        padding: 12px !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-info h3 {
        font-size: 0.8rem !important;
    }
    
    .stat-trend {
        font-size: 0.7rem !important;
    }
    
    .empty-dashboard {
        margin: 5px;
        padding: 15px !important;
    }
    
    .empty-content h3 {
        font-size: 1.1rem !important;
    }
    
    .empty-content p {
        font-size: 0.9rem !important;
    }
    
    .start-monitoring-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .content {
        padding: 5px !important;
    }
}

/* ==============================================
   GRÁFICOS E CHARTS
   ============================================== */

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 320px; /* Altura fixa menor */
}

.chart-container canvas {
    max-height: 220px !important; /* Altura máxima do canvas */
    height: 220px !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.chart-controls {
    display: flex;
    gap: 5px;
}

.chart-btn {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn.active,
.chart-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ==============================================
   HEATMAP DE ATIVIDADE
   ============================================== */

.heatmap-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.heatmap-header {
    margin-bottom: 20px;
}

.heatmap-header h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.heatmap-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    margin-bottom: 15px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    background: #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.heatmap-cell[data-intensity="1"] { background: rgba(0, 123, 255, 0.2); }
.heatmap-cell[data-intensity="2"] { background: rgba(0, 123, 255, 0.4); }
.heatmap-cell[data-intensity="3"] { background: rgba(0, 123, 255, 0.6); }
.heatmap-cell[data-intensity="4"] { background: rgba(0, 123, 255, 0.8); }
.heatmap-cell[data-intensity="5"] { background: rgba(0, 123, 255, 1); }

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

.legend-gradient {
    width: 100px;
    height: 10px;
    background: linear-gradient(90deg, #f0f0f0, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 1));
    border-radius: 5px;
}

/* ==============================================
   ATIVIDADE RECENTE MELHORADA
   ============================================== */

.recent-activity.enhanced {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3 {
    margin: 0;
    color: #333;
}

.activity-controls {
    display: flex;
    gap: 10px;
}

.refresh-btn,
.filter-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover,
.filter-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* ==============================================
   SEÇÕES ANALYTICS, SENTIMENT, ALERTS, ETC.
   ============================================== */

.analytics-header,
.sentiment-header,
.alerts-header,
.reports-header,
.settings-header,
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.analytics-header h2,
.sentiment-header h2,
.alerts-header h2,
.reports-header h2,
.settings-header h2,
.logs-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.analytics-controls,
.reports-actions,
.logs-controls {
    display: flex;
    gap: 15px;
}

.time-selector,
.log-filter {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.export-btn,
.schedule-btn,
.generate-btn,
.create-alert-btn,
.export-logs-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.export-btn:hover,
.schedule-btn:hover,
.generate-btn:hover,
.create-alert-btn:hover,
.export-logs-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.analytics-grid,
.alerts-grid,
.reports-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.analytics-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1rem;
}

.insight-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insight-box i {
    color: #ffc107;
}

.insight-box p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

/* ==============================================
   ANÁLISE DE SENTIMENTOS
   ============================================== */

.sentiment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.sentiment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sentiment-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.sentiment-card:hover {
    transform: translateY(-5px);
}

.sentiment-card.positive {
    border-left: 5px solid #28a745;
}

.sentiment-card.neutral {
    border-left: 5px solid #ffc107;
}

.sentiment-card.negative {
    border-left: 5px solid #dc3545;
}

.sentiment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sentiment-card.positive .sentiment-icon {
    color: #28a745;
}

.sentiment-card.neutral .sentiment-icon {
    color: #ffc107;
}

.sentiment-card.negative .sentiment-icon {
    color: #dc3545;
}

.sentiment-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.sentiment-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.sentiment-keywords h3,
.sentiment-alerts h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

.sentiment-timeline {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 350px; /* Altura fixa menor */
}

.sentiment-timeline h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.sentiment-timeline canvas {
    max-height: 250px !important;
    height: 250px !important;
}

.sentiment-keywords,
.sentiment-alerts {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keyword {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid;
}

.keyword.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: #28a745;
}

.keyword.neutral {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: #ffc107;
}

.keyword.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: #dc3545;
}

/* ==============================================
   SISTEMA DE ALERTAS
   ============================================== */

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.alert-item.critical {
    border-left-color: #dc3545;
}

.alert-item.warning {
    border-left-color: #ffc107;
}

.alert-item.info {
    border-left-color: #17a2b8;
}

.alert-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alert-item.critical .alert-status {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-item.warning .alert-status {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alert-details {
    flex: 1;
}

.alert-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.alert-details p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.alert-actions {
    display: flex;
    gap: 10px;
}

.view-btn,
.dismiss-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dismiss-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.alert-time {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ==============================================
   LOGS DO SISTEMA
   ============================================== */

.logs-container {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.log-entry {
    display: grid;
    grid-template-columns: 150px 80px 1fr 120px;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.log-time {
    color: #888;
}

.log-level {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.7rem;
}

.log-level.info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.log-level.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.log-level.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.log-level.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.log-level.security {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.log-message {
    color: #fff;
}

.log-source {
    color: #888;
    font-size: 0.8rem;
}

.logs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.prev-btn,
.next-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.prev-btn:disabled,
.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

/* ==============================================
   SEÇÃO DE RASTREAMENTO DE LOCALIZAÇÃO
   ============================================== */

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.location-header h2 {
    margin: 0;
    color: #333;
}

.location-actions {
    display: flex;
    gap: 15px;
}

.track-ip-btn,
.export-locations-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.track-ip-btn {
    background: #007bff;
    color: white;
}

.track-ip-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.export-locations-btn {
    background: #28a745;
    color: white;
}

.export-locations-btn:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

/* Estatísticas de Localização */
.location-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.location-stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.location-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.location-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.location-stat-card .stat-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1rem;
}

.location-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #007bff;
}

.location-stat-card .stat-description {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Localização do Contato Monitorado */
.contact-location-tracking {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.no-contact-selected {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-contact-selected i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.no-contact-selected h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.no-contact-selected p {
    margin: 0 0 25px 0;
    color: #666;
}

.add-contact-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-contact-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.contact-location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-header .contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
}

.contact-header .contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-family: monospace;
}

.location-status {
    text-align: right;
    color: #666;
}

.last-seen {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.last-location {
    color: #007bff;
    font-weight: 600;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 5px 15px rgba(0,123,255,0.2);
}

.location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.location-details {
    flex: 1;
}

.location-details h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1rem;
}

.location-address {
    margin: 0 0 5px 0;
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
}

.location-accuracy {
    margin: 0;
    color: #28a745;
    font-size: 0.85rem;
}

.location-time {
    color: #666;
    font-size: 0.85rem;
    text-align: right;
}

.no-location-history {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-location-history i {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.no-location-history h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.no-location-history p {
    margin: 0;
    font-size: 1.1rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tracking-header h3 {
    margin: 0;
    color: #333;
}

.tracking-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 600;
}

.status-indicator.active {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ip-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ip-input-group .form-input {
    flex: 1;
    min-width: 200px;
}

.track-btn {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.track-btn:hover {
    background: #0056b3;
}

/* Resultado do Rastreamento */
.tracking-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h4 {
    margin: 0;
    color: #333;
}

.result-timestamp {
    color: #666;
    font-size: 0.85rem;
}

.location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.info-value {
    color: #007bff;
    font-size: 1rem;
    font-weight: 500;
}

/* Histórico de Localizações */
.location-history {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.history-header h3 {
    margin: 0;
    color: #333;
}

.history-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
}

.filter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Timeline de Localizações */
.location-timeline {
    position: relative;
}

.location-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    position: relative;
    z-index: 1;
}

.date-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.timeline-date span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-entry {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.location-entry:hover {
    background: #e7f3ff;
    border-left-color: #0056b3;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.ip-address {
    font-family: 'Courier New', monospace;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.entry-time {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.entry-status.normal {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.entry-status.suspicious {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.entry-details {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.entry-details i {
    color: #007bff;
}

.location-type {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-accuracy {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.location-address {
    font-weight: 500;
    color: #333;
}

.location-coords {
    color: #666;
    font-size: 0.85rem;
    font-family: monospace;
}

.location-actions {
    margin-top: 10px;
}

.view-map-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-map-btn:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

/* Mapa de Localizações */
.location-map {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-header h3 {
    margin: 0;
    color: #333;
}

.map-controls {
    display: flex;
    gap: 10px;
}

.map-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.map-container {
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.map-placeholder p {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.map-placeholder small {
    color: #999;
}

.map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.normal {
    background: #28a745;
}

.legend-dot.suspicious {
    background: #dc3545;
}

.legend-dot.current {
    background: #007bff;
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .location-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .location-actions {
        justify-content: space-between;
    }
    
    .location-stats {
        grid-template-columns: 1fr;
    }
    
    .ip-input-group {
        flex-direction: column;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-date {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        min-width: auto;
    }
    
    .date-circle {
        margin-bottom: 0;
    }
    
    .location-timeline::before {
        display: none;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .map-controls {
        flex-direction: column;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==============================================
   TEMA ESCURO MELHORADO
   ============================================== */

body.dark-theme {
    background: #0f1419;
    color: #e4e6ea;
}

.dark-theme .sidebar {
    background: linear-gradient(180deg, #1e2328 0%, #2f3349 100%);
    border-right: 1px solid #3a3f4b;
}

.dark-theme .main-content {
    background: #0f1419;
}

.dark-theme .header {
    background: #1e2328;
    color: #e4e6ea;
    border-bottom: 1px solid #3a3f4b;
}

.dark-theme .stat-card,
.dark-theme .chart-container,
.dark-theme .analytics-card,
.dark-theme .recent-activity.enhanced,
.dark-theme .heatmap-container,
.dark-theme .sentiment-card,
.dark-theme .alert-item,
.dark-theme .log-entry {
    background: #1e2328;
    color: #e4e6ea;
    border: 1px solid #3a3f4b;
}

.dark-theme .form-select,
.dark-theme .form-input,
.dark-theme .setting-select,
.dark-theme .setting-input,
.dark-theme .phone-input {
    background: #2a2f3a;
    color: #e4e6ea;
    border-color: #3a3f4b;
}

.dark-theme .form-select::placeholder,
.dark-theme .form-input::placeholder,
.dark-theme .phone-input::placeholder {
    color: #8b949e;
}

/* Melhorar contraste dos textos */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #f0f6fc;
}

.dark-theme .stat-number {
    color: #58a6ff;
}

.dark-theme .stat-label,
.dark-theme .stat-trend,
.dark-theme p,
.dark-theme span {
    color: #8b949e;
}

.dark-theme .menu-item {
    color: #e4e6ea;
}

.dark-theme .menu-item:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.dark-theme .menu-item.active {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

/* Melhorar botões */
.dark-theme .add-btn-new,
.dark-theme .btn-complete-report,
.dark-theme .export-btn,
.dark-theme .chart-btn {
    background: #238636;
    color: #f0f6fc;
    border-color: #238636;
}

.dark-theme .add-btn-new:hover,
.dark-theme .btn-complete-report:hover,
.dark-theme .export-btn:hover,
.dark-theme .chart-btn:hover {
    background: #2ea043;
    border-color: #2ea043;
}

.dark-theme .chart-btn.active {
    background: #58a6ff;
    color: #0d1117;
    border-color: #58a6ff;
}

/* Melhorar notificações */
.dark-theme .notifications-dropdown {
    background: #1e2328;
    border: 1px solid #3a3f4b;
}

.dark-theme .notification-item {
    border-bottom: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .notification-item:hover {
    background: #2a2f3a;
}

/* Melhorar alertas e logs */
.dark-theme .alert-item.critical {
    background: #2d1b1e;
    border-color: #da3633;
}

.dark-theme .alert-item.warning {
    background: #2d2a1b;
    border-color: #fb8500;
}

.dark-theme .alert-item.info {
    background: #1b2d42;
    border-color: #58a6ff;
}

.dark-theme .log-level.error {
    background: #da3633;
    color: #f0f6fc;
}

.dark-theme .log-level.warning {
    background: #fb8500;
    color: #0d1117;
}

.dark-theme .log-level.success {
    background: #238636;
    color: #f0f6fc;
}

.dark-theme .log-level.info {
    background: #58a6ff;
    color: #0d1117;
}

.dark-theme .log-level.security {
    background: #8b5cf6;
    color: #f0f6fc;
}

/* Melhorar atividades e mensagens */
.dark-theme .activity-item,
.dark-theme .live-message {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .activity-time,
.dark-theme .message-time {
    color: #8b949e;
}

/* Melhorar contatos */
.dark-theme .contact-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .contact-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-theme .contact-details h5 {
    color: #ecf0f1;
}

.dark-theme .contact-phone {
    color: #bdc3c7;
}

.dark-theme .contact-about {
    color: #95a5a6;
}

.dark-theme .verified-badge {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Melhorar análise */
.dark-theme .analysis-message,
.dark-theme .analysis-results {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .historical-item {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

/* Melhorar breadcrumb */
.dark-theme .breadcrumb {
    color: #8b949e;
}

/* Scrollbars no tema escuro */
.dark-theme *::-webkit-scrollbar {
    width: 8px;
}

.dark-theme *::-webkit-scrollbar-track {
    background: #1e2328;
}

.dark-theme *::-webkit-scrollbar-thumb {
    background: #3a3f4b;
    border-radius: 4px;
}

.dark-theme *::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}

/* Melhorar elementos específicos no tema escuro */
.dark-theme .user-profile {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .user-name {
    color: #f0f6fc;
}

.dark-theme .user-role {
    color: #8b949e;
}

.dark-theme .logout-btn {
    background: #da3633;
    color: #f0f6fc;
}

.dark-theme .logout-btn:hover {
    background: #f85149;
}

.dark-theme .theme-toggle {
    background: #2a2f3a;
    color: #e4e6ea;
    border: 1px solid #3a3f4b;
}

.dark-theme .theme-toggle:hover {
    background: #3a3f4b;
    color: #58a6ff;
}

.dark-theme .notification-count {
    background: #da3633;
    color: #f0f6fc;
}

.dark-theme .current-time {
    color: #8b949e;
}

/* Melhorar formulários específicos */
.dark-theme .add-contact-form,
.dark-theme .monitor-container {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .form-group label {
    color: #f0f6fc;
}

.dark-theme .form-warning {
    background: #2d2a1b;
    border-color: #fb8500;
    color: #e4e6ea;
}

/* Tema escuro para aviso de segurança no formulário */
.dark-theme .security-warning-form {
    background: linear-gradient(135deg, #2d2a1b 0%, #3d3520 100%);
    border-color: #fb8500;
}

.dark-theme .warning-header-form h5 {
    color: #fb8500;
}

.dark-theme .warning-header-form i {
    color: #f85149;
}

.dark-theme .warning-content-form p {
    color: #f0c674;
}

.dark-theme .warning-content-form strong {
    color: #ffd700;
}

.dark-theme .warning-highlight-form {
    background: rgba(248, 81, 73, 0.15);
    border-color: #f85149;
}

.dark-theme .warning-highlight-form i {
    color: #f85149;
}

.dark-theme .warning-highlight-form span {
    color: #f0c674;
}

.dark-theme .progress-fill {
    background: linear-gradient(90deg, #238636, #2ea043);
}

.dark-theme .connection-progress {
    background: #1e2328;
    border: 1px solid #3a3f4b;
    color: #e4e6ea;
}

/* Melhorar status e indicadores */
.dark-theme .status-indicator .online {
    background: #238636;
}

.dark-theme .monitor-status {
    color: #e4e6ea;
}

.dark-theme .monitored-count {
    color: #8b949e;
}

/* Cores de utilidade no tema escuro */
.dark-theme .text-green { color: #2ea043; }
.dark-theme .text-blue { color: #58a6ff; }
.dark-theme .text-red { color: #f85149; }
.dark-theme .text-yellow { color: #fb8500; }

/* Melhorar app simulation no tema escuro */
.dark-theme .app-simulation {
    background: #1e2328;
    border: 1px solid #3a3f4b;
}

.dark-theme .app-header {
    background: #2a2f3a;
    color: #e4e6ea;
}

.dark-theme .chat-item {
    background: #1e2328;
    border-bottom: 1px solid #3a3f4b;
    color: #e4e6ea;
}

.dark-theme .chat-item:hover {
    background: #2a2f3a;
}

.dark-theme .last-message {
    color: #8b949e;
}

.dark-theme .time {
    color: #8b949e;
}

/* ==============================================
   ANIMAÇÕES
   ============================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==============================================
   RESPONSIVIDADE
   ============================================== */

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-container {
        height: 280px; /* Altura menor em mobile */
        padding: 15px;
    }
    
    .chart-container canvas {
        max-height: 180px !important;
        height: 180px !important;
    }
    
    .sentiment-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sentiment-timeline {
        height: 300px;
        padding: 15px;
    }
    
    .sentiment-timeline canvas {
        max-height: 200px !important;
        height: 200px !important;
    }
    
    .sentiment-keywords,
    .sentiment-alerts {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    

    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .login-form {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .notifications-dropdown {
        width: 300px;
        right: -50px;
    }
}

/* ==============================================
   UTILIDADES
   ============================================== */

.text-green { color: #28a745; }
.text-blue { color: #007bff; }
.text-red { color: #dc3545; }
.text-yellow { color: #ffc107; }

.hidden { display: none; }

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Seção de Rastreamento - Tema Escuro */
.dark-theme .location-header h2 {
    color: var(--text-primary);
}

.dark-theme .location-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.dark-theme .location-stat-card .stat-content h3 {
    color: var(--text-primary);
}

.dark-theme .location-stat-card .stat-description {
    color: var(--text-muted);
}

.dark-theme .contact-location-tracking,
.dark-theme .location-history,
.dark-theme .location-map {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.dark-theme .no-contact-selected h4,
.dark-theme .no-location-history h4 {
    color: var(--text-primary);
}

.dark-theme .no-contact-selected p,
.dark-theme .no-location-history p {
    color: var(--text-muted);
}

.dark-theme .contact-header {
    background: var(--bg-primary);
}

.dark-theme .contact-details h4 {
    color: var(--text-primary);
}

.dark-theme .contact-details p {
    color: var(--text-muted);
}

.dark-theme .location-status {
    color: var(--text-muted);
}

.dark-theme .location-card {
    background: var(--bg-primary);
    border-color: #007bff;
}

.dark-theme .location-details h5 {
    color: var(--text-primary);
}

.dark-theme .location-address {
    color: #007bff;
}

.dark-theme .location-accuracy {
    color: #28a745;
}

.dark-theme .location-time {
    color: var(--text-muted);
}

.dark-theme .location-coords {
    color: var(--text-muted);
}

.dark-theme .tracking-header h3,
.dark-theme .history-header h3,
.dark-theme .map-header h3 {
    color: var(--text-primary);
}

.dark-theme .tracking-result {
    background: var(--bg-primary);
    border-left-color: #007bff;
}

.dark-theme .result-header h4 {
    color: var(--text-primary);
}

.dark-theme .result-timestamp {
    color: var(--text-muted);
}

.dark-theme .info-label {
    color: var(--text-muted);
}

.dark-theme .info-value {
    color: var(--text-primary);
}

.dark-theme .filter-select {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-theme .filter-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.dark-theme .filter-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dark-theme .timeline-date span {
    color: var(--text-muted);
}

.dark-theme .location-entry {
    background: var(--bg-primary);
    border-left-color: #007bff;
}

.dark-theme .location-entry:hover {
    background: rgba(0, 123, 255, 0.1);
}

.dark-theme .entry-time {
    color: var(--text-muted);
}

.dark-theme .entry-details {
    color: var(--text-muted);
}

.dark-theme .provider {
    color: var(--text-muted);
}

.dark-theme .map-container {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

.dark-theme .map-placeholder {
    color: var(--text-muted);
}

.dark-theme .map-placeholder p {
    color: var(--text-primary);
}

.dark-theme .map-legend .legend-item {
    color: var(--text-muted);
}

.dark-theme .map-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.dark-theme .map-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
} 

/* ==============================================
   RESPONSIVIDADE MOBILE - DASHBOARD
   ============================================== */

/* Força layout mobile em telas pequenas */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        overflow-x: hidden;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .content {
        margin-left: 0 !important;
        padding: 5px !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .stat-card {
        padding: 15px !important;
        gap: 12px !important;
        min-height: auto !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }
    
    .stat-info {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .stat-info h3 {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
        margin: 5px 0 !important;
        line-height: 1 !important;
    }
    
    .stat-trend {
        font-size: 0.7rem !important;
        gap: 3px !important;
    }
    
    .stat-trend span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .stat-chart {
        width: 60px !important;
        height: 30px !important;
        flex-shrink: 0;
    }
    
    .empty-dashboard {
        margin: 10px 0 !important;
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    .empty-content {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .empty-icon {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .empty-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .empty-content p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .empty-steps {
        gap: 8px !important;
        margin: 15px 0 !important;
    }
    
    .step {
        flex-direction: row !important;
        text-align: left !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }
    
    .step-number {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0;
    }
    
    .start-monitoring-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .header {
        padding: 10px 15px !important;
        flex-wrap: wrap !important;
    }
    
    .header-left h1 {
        font-size: 1.3rem !important;
    }
    
    .header-right {
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    .breadcrumb {
        font-size: 0.75rem !important;
    }
    

}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .content {
        padding: 5px !important;
    }
    
    .stats-grid {
        gap: 8px !important;
    }
    
    .stat-card {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .stat-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .stat-info h3 {
        font-size: 0.8rem !important;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
    }
    
    .stat-trend {
        font-size: 0.65rem !important;
    }
    
    .stat-chart {
        width: 50px !important;
        height: 25px !important;
    }
    
    .empty-dashboard {
        margin: 5px 0 !important;
        padding: 12px !important;
    }
    
    .empty-icon {
        font-size: 2rem !important;
    }
    
    .empty-content h3 {
        font-size: 1.1rem !important;
    }
    
    .empty-content p {
        font-size: 0.85rem !important;
    }
    
    .start-monitoring-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .header-left h1 {
        font-size: 1.1rem !important;
    }
}

/* Força responsividade em todos os elementos */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .content-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }
    
    .charts-grid,
    .analytics-grid,
    .recent-activity {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 5px !important;
    }
    
    .chart-container,
    .analytics-card {
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Remove qualquer overflow horizontal */
    .form-group,
    .form-select,
    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Fim da seção de responsividade mobile */



.historical-messages h5 {
    margin: 0 0 15px 0;
    color: #333;
}

.history-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.historical-item {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.historical-item.historical-activity {
    border-left-color: #28a745;
}

.hist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hist-icon {
    width: 20px;
    text-align: center;
}

.hist-contact {
    font-weight: bold;
    color: #333;
}

.hist-time {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

.hist-content {
    color: #555;
    font-style: italic;
}

.analysis-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.notice-header h6 {
    margin: 0;
    color: #1976d2;
}

.analysis-notice p {
    margin: 0;
    color: #555;
}

.complete-report-features {
    background: #f1f8e9;
    border: 1px solid #8bc34a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.complete-report-features h6 {
    margin: 0 0 10px 0;
    color: #558b2f;
}

.feature-item {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.report-action {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-complete-report {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 20px 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-complete-report:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
    border-radius: 15px;
}



/* Real WhatsApp Photo Indicator */
.real-photo-border {
    border: 2px solid #25d366 !important;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.3) !important;
    animation: realPhotoGlow 2s ease-in-out infinite alternate;
}

@keyframes realPhotoGlow {
    0% {
        box-shadow: 0 0 8px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
    }
}

/* Photo Loading State */
.photo-loading {
    position: relative;
    overflow: hidden;
}

.photo-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: photoShimmer 1.5s infinite;
}

@keyframes photoShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* WhatsApp Photo Success Indicator */
.whatsapp-photo-success {
    position: relative;
}

.whatsapp-photo-success::before {
    content: "📸";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    background: #25d366;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Dark theme adaptations */
.dark-theme .real-photo-border {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5) !important;
}

.dark-theme .photo-loading::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Extended Contact Information */
.contact-info-extended {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.whatsapp-status, .account-type, .real-name {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* WhatsApp Status Badges */
.whatsapp-status.status-active {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-status.status-registered {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.whatsapp-status.status-unverified {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.whatsapp-status.status-api-error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.whatsapp-status.status-checking {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
    animation: statusPulse 1.5s infinite;
}

/* Account Type Badges */
.account-type.account-business {
    background: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.account-type.account-personal {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.account-type.account-unknown {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Real Name Badge */
.real-name {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
    font-style: italic;
}

/* Animations */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Chat Meta Layout Adjustment */
.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.chat-meta .time {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-info-extended {
        gap: 2px;
    }
    
    .whatsapp-status, .account-type, .real-name {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .chat-meta {
        min-width: 100px;
    }
}

/* Dark Theme Support */
.dark-theme .whatsapp-status.status-active {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
}

.dark-theme .whatsapp-status.status-registered {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
}

.dark-theme .whatsapp-status.status-unverified {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.dark-theme .whatsapp-status.status-api-error {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
}

.dark-theme .account-type.account-business {
    background: rgba(111, 66, 193, 0.2);
    border-color: rgba(111, 66, 193, 0.4);
}

.dark-theme .account-type.account-personal {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
}

.dark-theme .real-name {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.4);
}

/* === ESTILOS PARA SEÇÃO DE NÚMEROS MONITORADOS === */

.monitored-numbers-section {
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.monitored-numbers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
    border-radius: 20px 20px 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.section-header h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h3 i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.section-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.refresh-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.refresh-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.refresh-btn:hover::after {
    left: 100%;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
}

.refresh-btn:disabled {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    transform: none;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
    cursor: not-allowed;
}

.refresh-btn:disabled::after {
    display: none;
}

.refresh-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.add-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.add-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.monitored-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    padding: 8px;
}

@media (max-width: 1400px) {
    .monitored-numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

@media (max-width: 900px) {
    .monitored-numbers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 4px;
    }
}

.monitored-contact-card {
    background: linear-gradient(145deg, var(--card-background) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.monitored-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.monitored-contact-card:hover {
    border-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
    transform: translateY(-4px) scale(1.02);
}

.monitored-contact-card:hover::before {
    opacity: 1;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-avatar-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-right: 4px;
}

.contact-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.contact-avatar-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-avatar-wrapper:hover::before {
    opacity: 0.7;
}

.contact-avatar-wrapper:hover .contact-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Indicador de foto real do WhatsApp */
.photo-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    z-index: 2;
    animation: photoIndicatorPulse 2s ease-in-out infinite;
}

@keyframes photoIndicatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.6);
    }
}

/* Badge de foto verificada */
.photo-verified-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    border: 3px solid white;
    z-index: 2;
}

.contact-name {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-phone {
    color: #25d366;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-phone i {
    font-size: 1.1rem;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge.whatsapp-active {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.05));
    color: #22c55e;
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.badge.whatsapp-registered {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.badge.business {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(147, 51, 234, 0.05));
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

.badge.personal {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.badge.not-verified {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.badge.api-unavailable {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.badge.real-name {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.contact-stats {
    margin-bottom: 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-item i {
    font-size: 1.25rem;
    color: #667eea;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.last-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(239, 246, 255, 0.8);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.last-activity i {
    font-size: 1rem;
    color: #3b82f6;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
}

.contact-action-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-action-btn:hover::before {
    left: 100%;
}

.view-details-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.remove-contact-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.remove-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

/* Resumo do Monitoramento */
.monitoring-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 32px;
}

.monitoring-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.summary-header h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.summary-header h4 i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.summary-stat {
    text-align: center;
    padding: 16px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.summary-stat:hover::before {
    left: 100%;
}

.summary-stat:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.summary-stat .value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-stat .label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Estado vazio personalizado */
.no-contacts-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-contacts-message i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.no-contacts-message h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Indicadores de foto real */
.photo-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid var(--card-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge.real-name {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Animações e Efeitos Especiais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmerGlow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

.monitored-contact-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.monitored-contact-card:nth-child(1) { animation-delay: 0.1s; }
.monitored-contact-card:nth-child(2) { animation-delay: 0.2s; }
.monitored-contact-card:nth-child(3) { animation-delay: 0.3s; }
.monitored-contact-card:nth-child(4) { animation-delay: 0.4s; }

.badge {
    animation: slideInRight 0.4s ease-out forwards;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }

.summary-stat {
    animation: bounceIn 0.6s ease-out forwards;
}

.summary-stat:nth-child(1) { animation-delay: 0.1s; }
.summary-stat:nth-child(2) { animation-delay: 0.2s; }
.summary-stat:nth-child(3) { animation-delay: 0.3s; }
.summary-stat:nth-child(4) { animation-delay: 0.4s; }
.summary-stat:nth-child(5) { animation-delay: 0.5s; }
.summary-stat:nth-child(6) { animation-delay: 0.6s; }

.contact-avatar-wrapper {
    animation: bounceIn 0.5s ease-out forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    .monitored-numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .section-header h3 {
        font-size: 1.4rem;
    }
    
    .section-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-stats {
        margin-bottom: 20px;
    }
    
    .stat-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 14px;
    }
    
    .last-activity {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .contact-avatar-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .monitored-contact-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-badges {
        justify-content: center;
    }
    
    .contact-actions {
        justify-content: center;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
}

/* Tema Escuro - Números Monitorados */
.dark-theme .monitored-numbers-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(148, 163, 184, 0.1);
}

.dark-theme .monitored-contact-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(148, 163, 184, 0.1);
}

.dark-theme .monitored-contact-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.dark-theme .contact-avatar {
    border-color: rgba(148, 163, 184, 0.2);
}

.dark-theme .contact-name {
    color: var(--text-primary);
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .contact-phone {
    color: #25d366;
}

.dark-theme .contact-stats {
    margin-bottom: 24px;
}

.dark-theme .stat-item {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.1);
}

.dark-theme .stat-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.dark-theme .stat-item i {
    color: #6366f1;
}

.dark-theme .last-activity {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.dark-theme .last-activity i {
    color: #93c5fd;
}

.dark-theme .contact-actions {
    border-color: rgba(148, 163, 184, 0.1);
}

.dark-theme .section-header h3 {
    background: linear-gradient(135deg, #f1f5f9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .section-header h3 i {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .monitoring-summary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .summary-stat {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.1);
}

.dark-theme .summary-stat:hover {
    background: rgba(51, 65, 85, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark-theme .badge.whatsapp-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.dark-theme .badge.whatsapp-registered {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.dark-theme .badge.business {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.05));
    border-color: rgba(147, 51, 234, 0.3);
}

.dark-theme .badge.personal {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.3);
}

.dark-theme .badge.not-verified {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.dark-theme .badge.api-unavailable {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

.dark-theme .badge.real-name {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

/* ==============================================
   ANÁLISE HISTÓRICA AVANÇADA
   ============================================== */

.advanced-stats {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.stat-text {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.analysis-insights {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.analysis-insights h6 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insight-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.insight-item span {
    font-size: 13px;
    line-height: 1.4;
}

.text-blue { color: #58a6ff; }
.text-red { color: #f85149; }
.text-green { color: #2ea043; }
.text-purple { color: #8b5cf6; }

/* Responsive para análise histórica */
@media (max-width: 768px) {
    .stat-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-detail {
        margin: 0;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .insight-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .complete-report-features {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 16px;
    }
    
    .feature-item {
        padding: 14px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-description {
        font-size: 12px;
        margin-top: 4px;
    }
}



/* Dark theme para análise histórica */
.dark-theme .advanced-stats {
    background: #2a2f3a;
}

.dark-theme .stat-detail {
    background: #1e2328;
    color: #e4e6ea;
    border: 1px solid #3a3f4b;
}

.dark-theme .stat-text {
    color: #8b949e;
}

.dark-theme .analysis-insights {
    background: linear-gradient(135deg, #1e2328 0%, #2a2f3a 100%);
    border: 1px solid #3a3f4b;
}

.dark-theme .insight-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .complete-report-features {
    background: #2a2f3a;
}

.dark-theme .feature-item {
    background: linear-gradient(135deg, #1e2328 0%, #2a2f3a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-color: #58a6ff;
}

.dark-theme .feature-item:hover {
    background: linear-gradient(135deg, #2a2f3a 0%, #1e2328 100%);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.dark-theme .feature-title {
    color: #e4e6ea;
}

.dark-theme .feature-description {
    color: #8b949e;
}

/* Placeholder para análise histórica */
.analysis-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-content h5 {
    margin: 0;
    font-weight: 600;
}

.placeholder-content p {
    margin: 0;
    font-size: 14px;
}

/* Dark theme para placeholder */
.dark-theme .analysis-placeholder {
    background: #2a2f3a;
}

.dark-theme .placeholder-content h5 {
    color: #8b949e !important;
}

.dark-theme .placeholder-content p {
    color: #6c757d !important;
}

/* CSS responsivo específico para btn-complete-report */
@media (max-width: 768px) {
    .btn-complete-report {
        padding: 16px 28px;
        font-size: 16px;
        gap: 10px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .btn-complete-report {
        padding: 14px 24px;
        font-size: 14px;
        gap: 8px;
        margin-top: 10px;
        border-radius: 10px;
    }
    
    .btn-complete-report:hover {
        border-radius: 12px;
    }
}

/* Animação pulsante para destacar ainda mais o botão */
@keyframes premiumButtonPulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
        transform: scale(1);
    }
}

.btn-complete-report {
    animation: premiumButtonPulse 2s ease-in-out infinite;
}

/* === ESTILOS PARA LIMITE DE 1 NÚMERO === */

/* Formulário desabilitado quando limite atingido */
.add-contact-form.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.add-contact-form.disabled .form-group {
    opacity: 0.7;
}

.add-contact-form.disabled .form-group label {
    color: #6c757d !important;
}

/* Campos de entrada desabilitados */
.form-select:disabled,
.form-input:disabled {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.form-select:disabled::placeholder,
.form-input:disabled::placeholder {
    color: #adb5bd !important;
}

/* Botão desabilitado quando limite atingido */
.add-btn-new:disabled,
.add-btn-new.limit-reached {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    border: 2px solid #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

.add-btn-new:disabled:hover,
.add-btn-new.limit-reached:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Aviso de limite atingido */
.form-warning.limit-reached {
    background: linear-gradient(135deg, #f8d7da 0%, #f1c6c7 100%) !important;
    border: 2px solid #dc3545 !important;
    color: #721c24 !important;
    animation: limitWarningPulse 2s ease-in-out infinite;
}

.form-warning.limit-reached i {
    color: #dc3545 !important;
    animation: warningIconPulse 1s ease-in-out infinite;
}

.form-warning.limit-reached span {
    font-weight: 600;
}

/* Checkbox desabilitado */
#acceptTermsCheckbox:disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* Animações para aviso de limite */
@keyframes limitWarningPulse {
    0%, 100% {
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        border-color: #c82333;
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.1);
    }
}

@keyframes warningIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modo escuro para limite */
.dark-theme .form-warning.limit-reached {
    background: linear-gradient(135deg, #5a2d2d 0%, #4a2424 100%) !important;
    border: 2px solid #e74c3c !important;
    color: #ffcccb !important;
}

.dark-theme .form-warning.limit-reached i {
    color: #e74c3c !important;
}

.dark-theme .form-select:disabled,
.dark-theme .form-input:disabled {
    background-color: #495057 !important;
    border-color: #6c757d !important;
    color: #adb5bd !important;
}

.dark-theme .add-contact-form.disabled .form-group label {
    color: #adb5bd !important;
}