/* Dental Triage Assistant Styles */

/* Container and Layout */
.dta-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Disclaimer */
.dta-disclaimer {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 20px 0;
    font-size: 14px;
    color: #92400e;
}

.dta-disclaimer p {
    margin: 0;
    line-height: 1.5;
}

/* Header */
.dta-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.dta-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.dta-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

/* Content Area */
.dta-content {
    padding: 30px 20px;
    min-height: 400px;
}

/* Screens */
.dta-screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.dta-screen.active {
    display: block;
}

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

/* Welcome Screen */
#dta-welcome {
    text-align: center;
    padding: 20px;
}

#dta-welcome p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.dta-time-estimate {
    font-size: 14px;
    color: #6b7280;
    margin: 20px 0;
}

/* Progress Bar */
.dta-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.dta-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}

/* Question Display */
.dta-question-number {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#dta-question-text {
    font-size: 20px;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.dta-question-note {
    background: #f3f4f6;
    border-left: 4px solid #667eea;
    padding: 12px 15px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #4b5563;
    border-radius: 4px;
    display: none;
}

/* Options */
.dta-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.dta-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.dta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dta-btn:active {
    transform: translateY(0);
}

.dta-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dta-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.dta-btn-secondary:hover {
    background: #e5e7eb;
}

.dta-btn-option {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    text-align: left;
    padding: 16px 20px;
}

.dta-btn-option:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.dta-btn-emergency {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Navigation */
.dta-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Results Screen */
.dta-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.dta-result-header h3 {
    color: #1f2937;
    font-size: 24px;
    margin: 0;
}

.dta-result-content {
    background: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.dta-result-content h4 {
    color: #667eea;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.dta-result-content p {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.dta-result-content p:last-child {
    margin-bottom: 0;
}

/* Urgency Levels */
.dta-urgency-level {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dta-urgency-emergency {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.dta-urgency-urgent {
    background: #fed7aa;
    color: #92400e;
    border: 1px solid #f97316;
}

.dta-urgency-soon {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #f59e0b;
}

.dta-urgency-routine {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Next Steps List */
#dta-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#dta-next-steps li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.5;
}

#dta-next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
}

/* Result Actions */
.dta-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Emergency Notice */
.dta-emergency-notice {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px;
}

.dta-emergency-notice h3 {
    color: #991b1b;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.dta-emergency-notice p {
    color: #7f1d1d;
    font-size: 16px;
    margin: 0 0 25px 0;
}

.dta-emergency-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.dta-btn-emergency {
    background: #ef4444;
    color: white;
}

/* Responsive Design */
@media (max-width: 640px) {
    .dta-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .dta-header {
        padding: 20px 15px;
    }
    
    .dta-header h2 {
        font-size: 24px;
    }
    
    .dta-content {
        padding: 20px 15px;
    }
    
    #dta-question-text {
        font-size: 18px;
    }
    
    .dta-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .dta-result-actions {
        flex-direction: column;
    }
    
    .dta-emergency-actions {
        flex-direction: column;
    }
    
    .dta-btn-option {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .dta-container {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .dta-header {
        background: none;
        color: #1f2937;
        border-bottom: 2px solid #667eea;
    }
    
    .dta-btn {
        display: none;
    }
    
    .dta-navigation {
        display: none;
    }
    
    .dta-result-actions {
        display: none;
    }
}

/* Accessibility */
.dta-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.dta-container *:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Loading State */
.dta-loading {
    text-align: center;
    padding: 40px;
}

.dta-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips (optional) */
.dta-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.dta-tooltip .dta-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.dta-tooltip:hover .dta-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Custom Scrollbar */
.dta-container::-webkit-scrollbar {
    width: 8px;
}

.dta-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dta-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.dta-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
