/* Voice AI Interview Button */
.interview-btn {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.interview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.interview-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.interview-btn.connecting {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.interview-btn.connected {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse-connected 2s infinite;
}

@keyframes pulse-connected {
    0%, 100% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6); }
}

.interview-btn.disabled {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    cursor: not-allowed;
    opacity: 0.6;
}

.interview-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Voice AI Modal */
.voice-ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.api-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.api-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.api-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.api-info a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Interview Modal */
.interview-modal {
    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: 10000;
    backdrop-filter: blur(10px);
}

.interview-content {
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s ease;
}

.interview-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interview-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interview-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.interview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.interview-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interview-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #10b981;
}

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

.interview-controls {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.voice-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    user-select: none;
}

.voice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.voice-btn:active {
    transform: translateY(-1px);
}

.voice-btn.recording {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

.voice-btn i {
    font-size: 1.5rem;
}

.transcript-container {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.transcript {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transcript-message {
    padding: 1rem;
    border-radius: 12px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

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

.transcript-message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.transcript-message.ai {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    align-self: flex-start;
}

.transcript-message strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Error Messages */
.voice-ai-error {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    z-index: 10001;
    animation: errorSlideIn 0.3s ease;
    max-width: 400px;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-content button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interview-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .interview-content {
        width: 95%;
        height: 90vh;
    }
    
    .interview-body {
        padding: 1rem;
    }
    
    .voice-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .voice-ai-error {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .interview-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .transcript-message.ai {
    background: var(--bg-secondary);
    border-color: var(--border-color);
} 