/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
}

/* Header - Now for the main content area */
.header {
    height: 120px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 16px;
    flex-shrink: 0;
}

.header-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-badge {
    background: linear-gradient(135deg, rgba(36, 59, 170, 0.2), rgba(147, 78, 134, 0.2));
    border: 1px solid rgba(36, 59, 170, 0.3);
    color: #00d4ff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
}

.header-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.header-btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.header-btn.primary:hover {
    background: var(--accent-dark);
}

/* Ask Ekho button styles */
.ask-ekho-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ask-ekho-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    clip-path: circle(50%);
}

.action-btn.ask-ekho-btn {
    background: linear-gradient(135deg, #934e86, #243baa, #00d4ff);
    color: white;
    border: none;
    font-weight: 600;
}

.action-btn.ask-ekho-btn:hover {
    background: linear-gradient(135deg, #7a3f70, #1c2f8a, #00b8dd);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 59, 170, 0.3);
}

.header-btn.primary.ask-ekho-btn {
    background: linear-gradient(135deg, #934e86, #243baa, #00d4ff);
    border: none;
    font-weight: 600;
}

.header-btn.primary.ask-ekho-btn:hover {
    background: linear-gradient(135deg, #7a3f70, #1c2f8a, #00b8dd);
    box-shadow: 0 4px 12px rgba(36, 59, 170, 0.3);
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.header-icon-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.mode-badge {
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-left: auto;
    transition: all 0.3s;
}

.connection-dot.connected {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

/* Main Content - Changes based on call state */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
    padding-top: 16px;
    gap: 12px;
}

/* Status Banner - Compact */
.status-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.status-banner.calling {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.status-banner.connected, .status-banner.active {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.status-banner.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
    min-width: 0;
}

.status-text .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-text .message {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dial Section */
.dial-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.dial-section.minimized {
    padding: 12px 16px;
}

.dial-section.minimized .input-group,
.dial-section.minimized .phone-inputs {
    display: none;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
}

.input-group textarea {
    resize: none;
    height: 60px;
}

.phone-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 400px) {
    .phone-inputs { grid-template-columns: 1fr; }
}

/* Call Button */
.call-btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.call-btn:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.call-btn:active { transform: translateY(0); }
.call-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.call-btn.end-call {
    background: var(--danger);
    box-shadow: 0 4px 20px var(--danger-glow);
}

.call-btn.end-call:hover {
    background: #dc2626;
}

/* Header User Info (compact, right side near Connected) */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    white-space: nowrap;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-user-role {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent-light);
}

.header-user-company {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

/* Divider dots between info items */
.header-user-company::before,
.header-user-email::before {
    content: "\00B7";
    margin-right: 12px;
    color: var(--text-muted);
}

@media (max-width: 1400px) {
    .header-user-email {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header-user-company {
        display: none;
    }
}

@media (max-width: 1100px) {
    .header-user-info {
        display: none;
    }
}

