﻿/* CRM Styles (Leads & Inbox) */

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

/* Filters Row */
.filters-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

/* Table Actions */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    margin-top: 1rem;
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Stage Badge */
.stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stage-badge.new,
.stage-badge.new_contact {
    background: var(--info-bg);
    color: var(--info);
}

.stage-badge.contacted {
    background: var(--primary-bg);
    color: var(--primary);
}

.stage-badge.qualified {
    background: var(--warning-bg);
    color: var(--warning);
}

.stage-badge.proposal,
.stage-badge.negotiation {
    background: #fef3c7;
    color: #d97706;
}

.stage-badge.converted {
    background: var(--success-bg);
    color: var(--success);
}

.stage-badge.lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Priority Badge */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.priority-badge.high {
    color: var(--danger);
}

.priority-badge.medium {
    color: var(--warning);
}

.priority-badge.low {
    color: var(--gray);
}

/* Lead Detail Grid */
.lead-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.lead-info-column h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.info-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.info-label i {
    margin-right: 0.5rem;
}

.info-value {
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
}

.timeline-content {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.timeline-type {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.timeline-text {
    color: var(--dark);
    font-size: 0.9rem;
}

.add-note-section {
    margin-top: 1rem;
}

/* Inbox Specific Styles */
.inbox-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.conversations-panel {
    background: var(--white);
    border-right: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.conversations-search {
    margin-bottom: 1rem;
}

.conversations-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.filter-chip.active {
    background: var(--primary);
    color: var(--white);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 0.75rem;
}

.conversation-item:hover {
    background: var(--light);
}

.conversation-item.active {
    background: var(--primary-bg);
    border-left: 3px solid var(--primary);
}

.conversation-item.unread {
    background: #f0fdf4;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.conversation-preview {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Chat Panel */
.chat-panel {
    background: #e5ddd5;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.chat-header {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
}

.chat-contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.chat-contact-name {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-contact-status {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-messages {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.message-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
}

.message-group.sent {
    align-items: flex-end;
}

.message-bubble {
    max-width: 65%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.message-group.sent .message-bubble {
    background: #dcf8c6;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.message-group.sent .message-time {
    text-align: right;
}

.chat-input-container {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chat-input-container textarea {
    flex: 1;
    resize: none;
    max-height: 150px;
    min-height: 40px;
    width: 100%;
    max-width: 100%;
}

.chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    text-align: center;
}

.chat-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Controls - Campos de entrada com fundo claro */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"],
select,
textarea {
    background-color: var(--white, #ffffff) !important;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 0.5rem);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary, #0f172a);
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px var(--color-primary-100, #dbeafe);
    background-color: var(--white, #ffffff) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary, #94a3b8);
}

/* Responsive */
@media (max-width: 1200px) {
    .lead-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .inbox-container {
        grid-template-columns: 280px 1fr;
    }
    
    .message-bubble {
        max-width: 75%;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .inbox-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-panel {
        display: none;
    }
    
    .conversations-panel.show-mobile {
        display: flex;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        z-index: 100;
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 0.75rem 1rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-contact-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .message-bubble {
        max-width: 90%;
    }
    
    .chat-actions {
        gap: 0.25rem;
    }
    
    .chat-actions .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .conversation-item {
        padding: 0.75rem;
    }
    
    .conversation-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .selected-info {
        justify-content: center;
    }
}
/* Kanban Board Styles */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.view-toggle .btn {
    border-radius: var(--radius);
}

/* Main Kanban View Container */
.kanban-view {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem;
    background: var(--light-bg, #f8f9fa);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    min-width: min-content;
    padding-bottom: 1rem;
}

.kanban-column {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 0;
    min-width: 280px;
    max-width: 280px;
    max-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--primary);
}

.kanban-column-header i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.kanban-column-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-column-count {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    background: var(--white);
    min-height: 400px;
    max-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-cards::-webkit-scrollbar {
    width: 6px;
}

.kanban-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.kanban-cards::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.kanban-cards::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: move;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    border: 1px solid #e9ecef;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(3deg);
}

.kanban-cards.drag-over {
    background: rgba(0,123,255,0.1);
    border: 2px dashed #007bff;
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.kanban-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.kanban-card-phone {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-body {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.kanban-card-body > div {
    margin-bottom: 0.25rem;
}

.kanban-card-body i {
    width: 16px;
    text-align: center;
    margin-right: 0.25rem;
}

.kanban-card-meta {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kanban-card-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.kanban-card-priority.high {
    background: var(--danger-bg);
    color: var(--danger);
}

.kanban-card-priority.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.kanban-card-priority.low {
    background: var(--info-bg);
    color: var(--info);
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-light);
    font-size: 0.75rem;
    color: var(--gray);
}

.kanban-card-source {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Table View */
#table-view {
    display: block;
}

#kanban-view {
    display: none;
}

/* Stage specific colors */
.kanban-column[data-stage="new"] .kanban-column-header {
    background: #6c757d;
}

.kanban-column[data-stage="new_contact"] .kanban-column-header {
    background: #17a2b8;
}

.kanban-column[data-stage="contacted"] .kanban-column-header {
    background: #007bff;
}

.kanban-column[data-stage="qualified"] .kanban-column-header {
    background: #28a745;
}

.kanban-column[data-stage="proposal"] .kanban-column-header {
    background: #ffc107;
}

.kanban-column[data-stage="negotiation"] .kanban-column-header {
    background: #fd7e14;
}

.kanban-column[data-stage="converted"] .kanban-column-header {
    background: #28a745;
}

.kanban-column[data-stage="lost"] .kanban-column-header {
    background: #dc3545;
}

.kanban-column[data-stage="triagem"] .kanban-column-header {
    background: #3b82f6;
}

.kanban-column[data-stage="pre_qualificado"] .kanban-column-header {
    background: #8b5cf6;
}

.kanban-column[data-stage="consulta_agendada"] .kanban-column-header {
    background: #f59e0b;
}

.kanban-column[data-stage="compareceu"] .kanban-column-header {
    background: #10b981;
}

.kanban-column[data-stage="contratado"] .kanban-column-header {
    background: #059669;
}

.kanban-column[data-stage="perdido"] .kanban-column-header {
    background: #ef4444;
}

.kanban-column[data-stage="arquivado"] .kanban-column-header {
    background: #6b7280;
}

/* Responsive Kanban */
@media (max-width: 1024px) {
    .kanban-board {
        gap: 1rem;
    }
    
    .kanban-column {
        min-width: 250px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .kanban-view {
        padding: 0.5rem;
    }
    
    .kanban-board {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .kanban-column {
        min-width: 100%;
        max-width: 100%;
        max-height: 500px;
    }
    
    .kanban-cards {
        max-height: 400px;
    }
    
    .kanban-card {
        padding: 0.75rem;
    }
    
    .kanban-card-name {
        font-size: 0.9rem;
    }
}
/* Document Checklist Styles */
.document-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: all 0.2s;
}

.checklist-item:hover {
    background: #e5e7eb;
    transform: translateX(4px);
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--dark);
}

.checklist-item.checked {
    opacity: 0.6;
    border-left-color: var(--success);
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    color: var(--gray);
}

.view-toggle {
    display: inline-flex;
    gap: 0.5rem;
}

/* Case Summary Styles */
.case-summary-card {
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.summary-badges .badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-urgency-baixa { background: #10b981; color: white; }
.badge-urgency-media { background: #f59e0b; color: white; }
.badge-urgency-alta { background: #ef4444; color: white; }
.badge-urgency-critica { background: #7f1d1d; color: white; animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-action-agendar_consulta { background: #6366f1; color: white; }
.badge-action-solicitar_documentos { background: #8b5cf6; color: white; }
.badge-action-encaminhar_especialista { background: #ec4899; color: white; }
.badge-action-recusar_caso { background: #64748b; color: white; }

#mentionedDatesList, #mentionedDocsList, #clientGoalText {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

#mentionedDatesList span, #mentionedDocsList span {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #e0f2fe;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Connection Status Fix */
.instance-card .instance-status-text {
    display: none; /* Ocultar texto de status duplicado */
}

.instance-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status indicator corrections */
.instance-card.connected .badge-danger,
.instance-card.connected .status-text-disconnected {
    display: none !important;
}

.instance-card.disconnected .badge-success,
.instance-card.disconnected .status-text-connected {
    display: none !important;
}

.instance-card .status-dot-online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: pulse-online 2s infinite;
}

.instance-card .status-dot-offline {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.instances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.instance-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.instance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.instance-card.connected {
    border-color: #10b981;
}

.instance-card.disconnected {
    border-color: #ef4444;
}

.instance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.instance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.instance-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.instance-key {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.instance-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}
