/* VAPI Voice Assistant Frontend CSS */

#vapi-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#vapi-floating-button:hover {
    transform: scale(1.05);
}

#vapi-call-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#vapi-call-interface.vapi-call-active {
    opacity: 1;
}

#vapi-call-number {
    font-size: 24px;
    margin-top: 50px;
}

#vapi-call-status {
    font-size: 18px;
    margin: 20px 0;
}

.vapi-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.vapi-control-btn {
    background: #333;
    border: none;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vapi-control-btn.active {
    background: #0073aa;
}

.vapi-control-btn.recording {
    background: #d63638;
}

.vapi-control-btn .vapi-icon {
    font-size: 20px;
}

.vapi-control-btn .vapi-label {
    font-size: 10px;
    margin-top: 5px;
}

.vapi-keypad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.vapi-keypad {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
}

.vapi-keypad-header {
    text-align: right;
}

.vapi-keypad-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.vapi-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.vapi-keypad-key {
    background: #f0f0f0;
    border: none;
    padding: 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.vapi-keypad-key:hover {
    background: #ddd;
}

.vapi-proximity-active {
    pointer-events: none;
    opacity: 0.2;
}

@media (max-width: 600px) {
    #vapi-call-interface.vapi-landscape {
        flex-direction: row;
        align-items: center;
    }

    .vapi-controls {
        flex-direction: column;
        gap: 10px;
    }
}