/* ===== ESTILOS GLOBAIS ===== */

.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25D366;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.toast {
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
}

.toast.show {
    transform: translateX(0);
}

.dashboard-hidden {
    display: none;
}

/* ===== NAVEGAÇÃO E SIDEBAR ===== */

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}     

.nav-link.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-right: 3px solid #10b981;
    color: #34d399 !important;
}

/* Scrollbar personalizada para sidebar */
nav::-webkit-scrollbar {
    width: 6px;
}

nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}

.section-content {
    display: none !important;
}

.section-content.active {
    display: block !important;
}

/* ===== ANIMAÇÕES ===== */

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

@keyframes highlightPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 20px 10px rgba(37, 211, 102, 0);
    }
}

@keyframes badgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.conversation-highlight {
    animation: highlightPulse 1s ease-in-out 3;
    background: linear-gradient(90deg, #25D366 0%, transparent 100%) !important;
}

#unread-badge.blinking {
    animation: badgeBlink 1s infinite;
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

/* Estilos para lista de contatos do broadcast */
.contact-checkbox-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.contact-checkbox-item:hover {
    background: #f9fafb;
}

.contact-checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.contact-checkbox-item.selected {
    background: #f0fdf4;
}

#schedule-fields input {
    min-width: 0;
}
