/* Простая кнопка звонка - Светлая тема */
.simple-call-button {
    position: fixed;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.simple-call-button-light {
    background: #EC4899;
    color: white;
}

.simple-call-button-light:hover {
    background: #DB2777;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.simple-call-button-dark {
    background: #EC4899;
    color: white;
}

.simple-call-button-dark:hover {
    background: #DB2777;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

/* Позиции кнопки */
.simple-call-button-bottom-right {
    bottom: 20px;
    right: 20px;
}

.simple-call-button-bottom-left {
    bottom: 20px;
    left: 20px;
}

.simple-call-button-top-right {
    top: 20px;
    right: 20px;
}

.simple-call-button-top-left {
    top: 20px;
    left: 20px;
}

/* Поп-ап - Светлая тема */
.simple-call-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.simple-call-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-call-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.simple-call-popup-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: simpleCallPopupSlideIn 0.3s ease;
    margin-top: -10vh; /* Поднимаем поп-ап выше */
}

@keyframes simpleCallPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.simple-call-popup-light .simple-call-popup-content {
    background: white;
    color: #1F2937;
}

.simple-call-popup-dark .simple-call-popup-content {
    background: #1F2937;
    color: white;
}

.simple-call-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.simple-call-popup-light .simple-call-popup-close {
    color: #6B7280;
}

.simple-call-popup-light .simple-call-popup-close:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.simple-call-popup-dark .simple-call-popup-close {
    color: #9CA3AF;
}

.simple-call-popup-dark .simple-call-popup-close:hover {
    background: #374151;
    color: white;
}

.simple-call-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid;
}

.simple-call-popup-light .simple-call-popup-header {
    border-color: #E5E7EB;
}

.simple-call-popup-dark .simple-call-popup-header {
    border-color: #374151;
}

.simple-call-manager-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.simple-call-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: simpleCallPulse 2s infinite;
}

.simple-call-status-indicator.online {
    background: #10B981;
}

.simple-call-status-indicator.offline {
    background: #EF4444;
}

.simple-call-status-indicator.connecting {
    background: #F59E0B;
}

@keyframes simpleCallPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.simple-call-popup-body {
    padding: 24px;
}

.simple-call-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.simple-call-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.simple-call-popup-light .simple-call-input {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #1F2937;
}

.simple-call-popup-light .simple-call-input:focus {
    outline: none;
    border-color: #EC4899;
    background: white;
}

.simple-call-popup-dark .simple-call-input {
    background: #374151;
    border-color: #4B5563;
    color: white;
}

.simple-call-popup-dark .simple-call-input:focus {
    outline: none;
    border-color: #EC4899;
    background: #4B5563;
}

.simple-call-input::placeholder {
    color: #9CA3AF;
}

.simple-call-start-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #EC4899;
    color: white;
    transition: all 0.2s;
    font-family: inherit;
}

.simple-call-start-btn:hover:not(:disabled) {
    background: #DB2777;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.simple-call-start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Активный звонок */
.simple-call-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.simple-call-timer {
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.simple-call-popup-light .simple-call-timer {
    color: #1F2937;
}

.simple-call-popup-dark .simple-call-timer {
    color: white;
}

.simple-call-status-message {
    font-size: 16px;
    text-align: center;
    min-height: 24px;
}

.simple-call-popup-light .simple-call-status-message {
    color: #6B7280;
}

.simple-call-popup-dark .simple-call-status-message {
    color: #9CA3AF;
}

.simple-call-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.simple-call-control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #F3F4F6;
    color: #1F2937;
}

.simple-call-popup-dark .simple-call-control-btn {
    background: #374151;
    color: white;
}

.simple-call-control-btn:hover {
    transform: scale(1.1);
}

.simple-call-control-btn.muted {
    background: #EF4444;
    color: white;
}

.simple-call-hangup {
    background: #EF4444 !important;
    color: white !important;
}

.simple-call-hangup:hover {
    background: #DC2626 !important;
}

/* Адаптивность */
@media (max-width: 480px) {
    .simple-call-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .simple-call-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .simple-call-timer {
        font-size: 28px;
    }
}
