/* ==================== ESTILOS PRINCIPAIS - WHATSAPP API ==================== */

/* WhatsApp Brand Colors */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
    --whatsapp-teal: #075E54;
    --whatsapp-light-green: #DCF8C6;
    --whatsapp-blue: #34B7F1;
}

/* Sidebar Styling */
.sidebar {
    height: calc(100vh - 76px);
    overflow-y: auto;
    padding-bottom: 20px;
}

.sidebar .list-group {
    margin-bottom: 0;
}

.sidebar .list-group-item:last-child {
    margin-bottom: 20px;
}

/* Sidebar Hover Effects - Menu estilo mobile */
.list-group-item-action {
    margin: 6px 12px;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px 12px !important;
    background: transparent !important;
    color: #6c757d !important;
    transition: all 0.3s ease;
    position: relative;
    width: calc(100% - 24px);
}

.list-group-item-action:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(18, 140, 126, 0.08) 100%) !important;
    color: var(--whatsapp-green) !important;
    transform: translateX(2px);
    box-shadow: 0 1px 4px rgba(37, 211, 102, 0.1);
    border: none !important;
}

.list-group-item-action:hover i {
    color: var(--whatsapp-green) !important;
}

/* Active Tab Styling */
.list-group-item-action.active {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.list-group-item-action.active i {
    color: white !important;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .list-group-item-action {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        min-height: 48px;
        margin: 4px 8px;
        padding: 12px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .list-group-item-action i {
        margin-right: 12px;
        font-size: 18px;
        width: 20px;
        text-align: center;
    }
    
    .list-group-item-action span {
        font-size: 14px;
        font-weight: 500;
        flex: 1;
    }
    
    .list-group-item-action:hover {
        background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
        color: white;
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
    
    /* Mobile sidebar positioning */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    /* Mobile header improvements */
    .navbar-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu-btn {
        background: var(--whatsapp-green);
        border: none;
        border-radius: 10px;
        padding: 12px;
        color: white;
        font-size: 18px;
        box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-btn:hover {
        background: var(--whatsapp-dark-green);
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-header-title {
        font-size: 18px;
        font-weight: 700;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-header-title i {
        color: var(--whatsapp-green);
        font-size: 20px;
    }
    
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-header-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    /* Close button for mobile menu - discreto */
    .mobile-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        color: #6c757d;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        opacity: 0.7;
    }
    
    .mobile-close-btn:hover {
        color: #dc3545;
        opacity: 1;
        transform: scale(1.1);
    }
    
    .mobile-close-btn:active {
        transform: scale(0.95);
    }
    
    /* User info at bottom - discrete */
    .mobile-user-info-bottom {
        padding: 15px 20px;
        background: rgba(248, 249, 250, 0.8);
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: auto;
        position: sticky;
        bottom: 0;
        backdrop-filter: blur(10px);
    }
    
    .mobile-user-info-bottom .user-avatar-small {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .mobile-user-info-bottom .user-details-small {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-user-info-bottom .user-name-small {
        font-size: 13px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-user-info-bottom .user-role-small {
        font-size: 11px;
        color: #6c757d;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-user-info-bottom .user-status-small {
        margin-left: 8px;
        flex-shrink: 0;
    }
    
    .mobile-user-info-bottom .status-dot-small {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #4ade80;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    /* Mobile sidebar overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile sidebar positioning */
    .sidebar-mobile {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        border-radius: 0 20px 20px 0;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-mobile.show {
        left: 0;
    }
    
    /* Mobile sidebar content */
    .sidebar-mobile .p-4 {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .sidebar-mobile .list-group {
        flex: 1;
        overflow-y: auto;
    }
    
    /* Mobile sidebar scrollbar */
    .sidebar-mobile::-webkit-scrollbar {
        width: 4px;
    }
    
    .sidebar-mobile::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .sidebar-mobile::-webkit-scrollbar-thumb {
        background: rgba(37, 211, 102, 0.3);
        border-radius: 2px;
    }
    
    .sidebar-mobile::-webkit-scrollbar-thumb:hover {
        background: rgba(37, 211, 102, 0.5);
    }
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 236, 239, 0.3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* Dashboard Stats Cards */
.stats-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
    border: 1px solid rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stats-card:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.15) 100%);
    border-color: rgba(37, 211, 102, 0.4);
}

/* Stats Cards - Estilo Uniforme com Boa Legibilidade */
.stats-card-primary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(13, 110, 253, 0.9) 100%);
    border: 1px solid rgba(13, 110, 253, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    color: #212529 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.stats-card-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.95) 0%, rgba(25, 135, 84, 0.9) 100%);
    border: 1px solid rgba(25, 135, 84, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    color: #212529 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.stats-card-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.95) 0%, rgba(13, 202, 240, 0.9) 100%);
    border: 1px solid rgba(13, 202, 240, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
    color: #212529 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.stats-card-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 193, 7, 0.9) 100%);
    border: 1px solid rgba(255, 193, 7, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #212529 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Session Manager Button */
.session-manager-btn {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border: 2px solid rgba(13, 110, 253, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.session-manager-btn:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
    border-color: rgba(13, 110, 253, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.session-manager-btn i {
    color: #0d6efd;
    transition: all 0.3s ease;
}

.session-manager-btn:hover i {
    color: #0a58ca;
    transform: scale(1.1);
}

/* Button Improvements */
.btn-primary {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--whatsapp-dark-green) 0%, var(--whatsapp-teal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, var(--whatsapp-dark-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Session Cards */
.session-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--whatsapp-green);
}

/* Status Indicator Large */
.status-indicator-large {
    transition: all 0.3s ease;
}

.status-indicator-large:hover {
    transform: scale(1.1);
}

/* Session Card Buttons */
.session-card .btn {
    transition: all 0.3s ease;
}

.session-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* QR Code in Session Cards */
.session-card .qr-code {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.session-card .qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 20px;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

/* QR Code Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header.bg-success {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%) !important;
    border-radius: 15px 15px 0 0;
}

/* Toast Notifications */
.toast {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.toast-header {
    border-radius: 10px 10px 0 0;
}

/* Loading Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Sidebar Styles */
@media (max-width: 768px) {
    .sidebar-mobile {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        border-right: 1px solid #e9ecef;
    }
    
    .sidebar-mobile.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1040;
        display: none;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .main-content-mobile {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    
    .navbar-toggler {
        display: block !important;
        border: none;
        background: none;
        color: white;
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler:hover {
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Header Styles */
.navbar-brand:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.status-indicator {
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.btn-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .sidebar-mobile {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    /* margin-left removed - now handled by container-fluid */
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content-mobile {
        margin-left: 0;
    }
    
    /* Menu sanduíche melhorado */
    .navbar-toggler {
        border: none;
        padding: 8px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background: rgba(37, 211, 102, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Ícone do menu sanduíche */
    .navbar-toggler-icon {
        background-image: none;
        width: 20px;
        height: 20px;
        position: relative;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: #333;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .navbar-toggler-icon {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar-toggler-icon::before {
        top: -6px;
    }
    
    .navbar-toggler-icon::after {
        top: 6px;
    }
    
    /* Animação do X quando aberto */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background: transparent;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    /* Overlay para fechar menu */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Botão de fechar melhorado */
    .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.3s ease;
        z-index: 1051;
    }
    
    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.12);
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

.sidebar .list-group {
    padding: 20px 0 100px 0; /* Espaço para o user info */
}

.sidebar .list-group-item {
    border: none;
    border-radius: 12px;
    margin: 2px 16px;
    padding: 16px 20px;
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: #6c757d;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.sidebar .list-group-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    border-radius: 16px;
    transform: scale(0.95);
}

.sidebar .list-group-item:hover {
    border-left-color: #667eea;
    transform: translateX(6px);
    color: #495057;
    margin-right: 6px;
    margin-left: 10px;
}

.sidebar .list-group-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    transform: scale(1);
}

.sidebar .list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #764ba2;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    margin-right: 8px;
    margin-left: 8px;
}

.sidebar .list-group-item.active::before {
    opacity: 0;
}

.sidebar .list-group-item.active:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-right: 6px;
    margin-left: 10px;
}

.sidebar .list-group-item i {
    width: 22px;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-right: 10px;
}

.sidebar .list-group-item:hover i {
    transform: scale(1.1);
    color: #667eea;
}

.sidebar .list-group-item.active i {
    color: white;
    transform: scale(1.05);
}

/* User Info at Bottom */
.sidebar .user-info-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.sidebar .user-info-bottom:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.sidebar .user-info-bottom .user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar .user-info-bottom .user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.4);
}

.sidebar .user-info-bottom .user-details {
    flex: 1;
    min-width: 0; /* Permite truncamento de texto */
}

.sidebar .user-info-bottom .user-name {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar .user-info-bottom:hover .user-name {
    color: #343a40;
}

.sidebar .user-info-bottom .user-role {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar .user-info-bottom:hover .user-role {
    color: #495057;
}

.sidebar .user-info-bottom .user-status {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.sidebar .user-info-bottom .status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar .user-info-bottom:hover .status-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
}

.sidebar .user-info-bottom .status-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar .user-info-bottom:hover .status-text {
    color: #495057;
}

/* Mobile Sidebar List Items */
.sidebar-mobile .list-group-item {
    border: none;
    border-radius: 12px;
    margin: 2px 16px;
    padding: 16px 20px;
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: #6c757d;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.sidebar-mobile .list-group {
    padding: 20px 0 100px 0; /* Espaço para o user info */
}

.sidebar-mobile .list-group-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sidebar-mobile .list-group-item:hover {
    border-left-color: #667eea;
    transform: translateX(6px);
    color: #495057;
    margin-right: 6px;
    margin-left: 10px;
}

.sidebar-mobile .list-group-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.sidebar-mobile .list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #764ba2;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    margin-right: 8px;
    margin-left: 8px;
}

.sidebar-mobile .list-group-item.active::before {
    opacity: 0;
}

.sidebar-mobile .list-group-item.active:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-right: 6px;
    margin-left: 10px;
}

.sidebar-mobile .list-group-item i {
    width: 22px;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-right: 10px;
}

.sidebar-mobile .list-group-item:hover i {
    transform: scale(1.1);
    color: #667eea;
}

.sidebar-mobile .list-group-item.active i {
    color: white;
    transform: scale(1.05);
}

.sidebar-mobile .user-info-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 320px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.sidebar-mobile .user-info-bottom:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Drag and Drop Styles */
.provider-item {
    transition: all 0.3s ease;
    cursor: move;
}

.provider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.provider-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drag-handle {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.provider-item:hover .drag-handle {
    opacity: 1;
}

.provider-item[draggable="true"] {
    user-select: none;
}

/* Session Card Styles - Modern Design */
.session-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.session-card:hover::before {
    opacity: 1;
}

.session-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 157, 0.3);
}

.session-card .card-header {
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.session-card .card-body {
    padding: 1.5rem;
    background: transparent;
}

.session-card .card-footer {
    border-radius: 0 0 16px 16px;
    background: rgba(248, 249, 250, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.session-card .btn {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.session-card .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;
}

.session-card .btn:hover::before {
    left: 100%;
}

.session-card .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.session-card .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.session-card .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.session-card .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.session-card .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

/* Status badges modernos */
.session-card .badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-card .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.session-card .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.session-card .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.session-card .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Modern Card Styles for All Cards */
.card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 157, 0.2);
}

.card-header {
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
    background: transparent;
}

.card-footer {
    border-radius: 0 0 16px 16px;
    background: rgba(248, 249, 250, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

/* Modern Button Styles */
.btn {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

/* Modern Badge Styles */
.badge {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Session Card Statistics Styles */
.stat-item {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(248, 249, 250, 1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateY(-1px);
}

.info-number {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Progress bar custom */
.progress {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Button spacing improvements */
.btn-group .btn {
    margin-right: 0.5rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Layout improvements for better width utilization */
.main-content {
    width: 100%;
    max-width: none;
    position: relative;
    z-index: 999;
}

.main-content-mobile {
    position: relative;
    z-index: 999;
}

/* Main content container positioning */
.main-content-container {
    margin-top: 80px;
    padding-top: 20px;
    min-height: calc(100vh - 80px);
    padding-bottom: 100px; /* Space for footer */
}

/* Desktop: Add left margin to compensate for fixed sidebar */
@media (min-width: 992px) {
    .main-content-container {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }
}

/* Mobile: No margin needed */
@media (max-width: 991px) {
    .main-content-container {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.tab-content {
    width: 100%;
    max-width: none;
}

/* Container improvements */
.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Card improvements for better space utilization */
.card {
    width: 100%;
}

/* Grid improvements */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col-lg-4, .col-md-6, .col-12 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Table improvements */
.table-responsive {
    width: 100%;
}

/* Form improvements */
.form-control, .form-select {
    width: 100%;
}

/* Button improvements */
.btn-group {
    width: auto;
    flex-wrap: wrap;
}

/* Statistics cards improvements */
.stat-item, .info-item {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Session cards improvements */
.session-card {
    width: 100%;
    min-height: 300px;
}

/* Contact/Group cards improvements */
.contact-card, .group-card {
    width: 100%;
    min-height: 200px;
}

/* Message form improvements */
#messageForm {
    width: 100%;
}

#messageForm .row {
    margin-left: 0;
    margin-right: 0;
}

#messageForm .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Footer positioning */
footer {
    position: relative;
    z-index: 998;
    margin-top: auto;
}

/* Desktop: Add left margin to footer to compensate for fixed sidebar */
@media (min-width: 992px) {
    footer {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }
}

/* Mobile: No margin needed for footer */
@media (max-width: 991px) {
    footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Responsive improvements */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Trigger Card Styles - Modern Design */
.trigger-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Preview Styles */
.media-preview {
    margin-top: 8px;
}

.media-preview .btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

.media-preview .btn {
    transition: all 0.2s ease;
}

.media-preview .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Session Card Styles - Simple Design */
.session-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.session-card .status-indicator {
    position: relative;
}

.session-card .status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    margin: 0 auto;
}

.session-card .btn {
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 8px;
}

.session-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Audio Player Styles */
.audio-player-container {
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 1rem;
}

.audio-player-container audio {
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Media Preview Styles for Triggers */
.media-preview {
    margin-top: 8px;
}

.media-thumbnail img {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.media-thumbnail img:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.media-player video,
.media-player audio {
    border-radius: 6px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.media-player video:hover,
.media-player audio:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.media-placeholder {
    transition: all 0.2s ease;
}

.media-placeholder:hover {
    background: #e9ecef !important;
    transform: scale(1.05);
}

/* Session Card Button Styles */
.session-card .btn-link {
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-card .btn-link:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.1);
}
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.trigger-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trigger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

.trigger-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.5rem 1rem;
}

.trigger-card .card-body {
    padding: 1.5rem;
}

.trigger-card .trigger-type-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trigger-card .trigger-content {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.trigger-card .trigger-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 1rem;
}

.trigger-card .trigger-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trigger-card .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trigger-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Multiple Responses Indicator */
.trigger-card .multiple-responses {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #2d3436;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trigger-card .sequential-responses {
    background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
    color: #2d3436;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trigger Status Indicators */
.trigger-status-enabled {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.trigger-status-disabled {
    background: linear-gradient(135deg, #636e72, #74b9ff);
    color: white;
}

/* Trigger Type Icons */
.trigger-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.trigger-type-text .trigger-type-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.trigger-type-image .trigger-type-icon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.trigger-type-audio .trigger-type-icon {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.trigger-type-video .trigger-type-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.trigger-type-document .trigger-type-icon {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

/* Contact and Group Photos - Perfect Circles */
.contact-avatar img,
.group-avatar img {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    background: #f8f9fa !important;
    transition: opacity 0.3s ease !important;
}

.contact-avatar .rounded-circle,
.group-avatar .rounded-circle {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

/* Ensure all avatar containers are perfect circles */
.contact-avatar,
.group-avatar,
.contact-avatar-* {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

/* Fix any distorted circles */
.rounded-circle {
    border-radius: 50% !important;
}

/* Session avatar fixes */
.session-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.session-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
