/* patient-interface.css */
body {
    padding: 20px;
    color: var(--primary-gold);
}

.header p {
    color: var(--text-muted);
    font-size: 1.1em;
    font-weight: 400;
}

.progress-bar {
    height: 4px;
    background: rgba(136, 136, 136, 0.2);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #AC996C;
    transition: width 0.3s ease;
    width: 0%;
}

.content {
    padding: 40px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-counter {
    background: rgba(172, 153, 108, 0.08);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    color: #AC996C;
    font-weight: 500;
    border: 1px solid rgba(172, 153, 108, 0.2);
    box-shadow: 0 2px 8px rgba(172, 153, 108, 0.1);
}

.question {
    margin-bottom: 30px;
}

.question h3 {
    color: #AC996C;
    font-size: 1.3em;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 400;
}

.question-type {
    font-size: 0.85em;
    color: rgba(136, 136, 136, 0.8);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    background: #F9F9F9;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: white;
    border-color: #AC996C;
    box-shadow: 0 2px 8px rgba(136, 136, 136, 0.15);
}

.option.selected {
    background: white;
    border-color: #AC996C;
    color: #AC996C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option input {
    margin: 0;
}

.scale-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.slider-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.slider-track {
    height: 6px;
    background: rgba(136, 136, 136, 0.2);
    border-radius: 3px;
    position: relative;
    margin: 20px 0;
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
    outline: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background: #AC996C;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-thumb:hover {
    background: #AC996C;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.slider-value {
    text-align: center;
    font-size: 1.6em;
    font-weight: 300;
    color: #AC996C;
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-description {
    text-align: center;
    font-size: 0.95em;
    color: #777;
    margin-top: 5px;
    min-height: 20px;
}

.text-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #F9F9F9;
    font-family: 'Montserrat', sans-serif;
}

.text-input:focus {
    outline: none;
    border-color: #AC996C;
    background: white;
    box-shadow: 0 2px 8px rgba(136, 136, 136, 0.15);
}

.uncertainty-check {
    margin-top: 20px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.uncertainty-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #AC996C 0%, rgba(172, 153, 108, 0.9) 100%);
    color: white;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid rgba(172, 153, 108, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(172, 153, 108, 0.95) 0%, #AC996C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 153, 108, 0.3);
}

.btn-primary:disabled {
    background: #e9ecef;
    color: rgba(136, 136, 136, 0.8);
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #AC996C;
    border: 1px solid rgba(172, 153, 108, 0.3);
    font-weight: 400;
}

.btn-secondary:hover {
    background: rgba(172, 153, 108, 0.05);
    border-color: #AC996C;
    box-shadow: 0 2px 8px rgba(172, 153, 108, 0.15);
    color: #AC996C;
}

.btn-secondary:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: rgba(136, 136, 136, 0.2);
    cursor: not-allowed;
}

.btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.completion {
    text-align: center;
    padding: 60px 20px;
}

.completion h2 {
    color: #AC996C;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 700;
}

.completion p {
    color: #666;
    font-size: 1.2em;
    line-height: 1.6;
}

.patient-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.patient-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #f44336;
}

.loading {
    text-align: center;
    padding: 40px;
}

.triangle-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    position: relative;
    animation: triangleRotate 2s ease-in-out infinite;
}

.triangle-spinner svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

@keyframes triangleRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }

    33% {
        transform: rotate(120deg) scale(1.1);
        opacity: 1;
    }

    66% {
        transform: rotate(240deg) scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.medical-term {
    cursor: help;
    border-bottom: 1px dotted #AC996C;
    transition: all 0.3s ease;
}

.medical-term:hover {
    background: #fefdf7;
    padding: 2px 4px;
    border-radius: 4px;
}

.enhanced-option {
    position: relative;
    overflow: hidden;
}

.enhanced-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s;
}

.enhanced-option:hover::before {
    left: 100%;
}

/* Gamification & Notifications */
#gamification-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--primary-gold);
    z-index: 1000;
}

#badge-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-gold);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(172, 153, 108, 0.4);
    z-index: 2000;
    text-align: center;
}

#tooltip {
    position: absolute;
    background: var(--primary-gold);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    max-width: 250px;
    z-index: 1500;
    pointer-events: none;
}

#tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--primary-gold);
}

@media (max-width: 600px) {
    .scale-container {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    body { padding: 0; }
    .container { margin: 0; border-radius: 0; box-shadow: none; }
    .content { padding: 20px 15px; }
    .header { padding: 20px 15px; }
    .header h1 { font-size: 1.8em; }
    .info-grid { grid-template-columns: 1fr; }
    .buttons { flex-direction: column; gap: 10px; }
    .btn { width: 100%; padding: 12px 20px; }
    #gamification-panel { top: 10px; right: 10px; padding: 8px; font-size: 0.8em; }
}

/* Voice Interview Styles */
.mic-wave {
    width: 80px;
    height: 80px;
    background: rgba(172, 153, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.mic-wave::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #AC996C;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.mic-icon {
    font-size: 30px;
}

.badge-pending {
    background: #e5e7eb;
    color: #4b5563;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid #d1d5db;
}

.badge-identified {
    background: #dcfce7;
    color: #166534;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid #bbf7d0;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
