/* EF WA CRM - Base Layout */

.ef-wa-crm-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background-color);
    max-width: 100%;
    margin: 0 auto;
    min-height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
}

/* Main Content Area - WhatsApp Split Layout */
.ef-wa-crm-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--background-color);
}

/* Loading & Error States */
.ef-wa-crm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.ef-wa-crm-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ef-wa-crm-spin 1s linear infinite;
    margin-bottom: 16px;
}

.ef-wa-crm-loading-text {
    font-size: 14px;
    font-weight: 500;
}

.ef-wa-crm-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.ef-wa-crm-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ef-wa-crm-error-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.ef-wa-crm-retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-normal);
}

.ef-wa-crm-retry-btn:hover {
    background: var(--primary-dark);
}

/* Welcome/Empty State */
.ef-wa-crm-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.ef-wa-crm-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.ef-wa-crm-welcome-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ef-wa-crm-welcome-text {
    font-size: 14px;
    line-height: 1.4;
    max-width: 400px;
}

/* Utilities */
.ef-wa-crm-hidden {
    display: none !important;
}

.ef-wa-crm-text-center {
    text-align: center;
}

.ef-wa-crm-text-muted {
    color: var(--text-muted);
}