* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loading-logo i {
    font-size: 40px;
    color: white;
}

.loading-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes progressGrow {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fillBar {
    from { width: 0; }
}

@keyframes fillProbability {
    from { width: 0; }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 48px;
    height: 48px;
    background: #3B82F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo i {
    font-size: 24px;
    color: white;
}

.nav-info h1 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.nav-info p {
    font-size: 14px;
    color: rgba(147, 197, 253, 1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Progress Tracker */
.progress-tracker {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

/* 🔄 MODIFIED: Removed overflow-x: auto */
.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: #3B82F6;
    border-color: #3B82F6;
    transform: scale(1.1);
}

.step-item.completed .step-icon {
    background: #10B981;
    border-color: #10B981;
}

.step-icon i {
    color: white;
    font-size: 20px;
}

.step-title {
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.step-item.active .step-title {
    color: white;
}

.step-item.completed .step-title {
    color: #10B981;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 16px;
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: #10B981;
}

/* Main Content */
.main-content {
    padding-top: 140px;
    padding-bottom: 32px;
}

.step-container {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-container.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
}

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: #3B82F6;
    animation: pulse 2s infinite;
}

.step-icon-large.ai-icon {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.step-icon-large.summary-icon {
    background: linear-gradient(135deg, #10B981, #14B8A6);
}

.step-icon-large.doctor-icon {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
}

.step-icon-large.questions-icon {
    background: linear-gradient(135deg, #06B6D4, #3B82F6);
}

.step-icon-large.response-icon {
    background: linear-gradient(135deg, #10B981, #14B8A6);
}

.step-icon-large.diagnosis-icon {
    background: linear-gradient(135deg, #10B981, #059669);
}

.step-icon-large.prescription-icon {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.step-icon-large i {
    font-size: 40px;
    color: white;
}

.step-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.step-header p {
    font-size: 16px;
    color: rgba(147, 197, 253, 1);
}

/* Form Styles */
.patient-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Symptom Input */
.symptom-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.symptom-input input {
    flex: 1;
}

.symptom-input button {
    padding: 12px 16px;
    background: #3B82F6;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.symptom-input button:hover {
    background: #2563EB;
}

.common-symptoms p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.symptom-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.symptom-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

.selected-symptoms {
    margin-top: 16px;
}

.selected-symptom {
    display: inline-flex;
    align-items: center;
    background: #3B82F6;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 14px;
}

.selected-symptom button {
    background: none;
    border: none;
    color: white;
    margin-left: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.selected-symptom button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

/* Step 2 Styles */
.patient-summary {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.patient-summary h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.analysis-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.analysis-progress h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analysis-step {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
}

.analysis-step.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5));
}

.analysis-step.completed {
    background: rgba(16, 185, 129, 0.3);
}

.analysis-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.analysis-step.active .analysis-step-icon {
    background: white;
    color: #8B5CF6;
    animation: pulse 1s infinite;
}

.analysis-step.completed .analysis-step-icon {
    background: #10B981;
    color: white;
}

.analysis-step-text {
    flex: 1;
    color: white;
    font-weight: 500;
}

.analysis-step.active .analysis-step-progress {
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 2px;
    margin-top: 8px;
    animation: progressGrow 2s ease-out;
}

.ai-visualization {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.ai-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.3);
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin: 0 auto 16px;
}

.analysis-complete {
    text-align: center;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 32px;
}

.completion-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.completion-icon i {
    font-size: 32px;
    color: white;
}

.analysis-complete h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.analysis-complete p {
    color: #6EE7B7;
    margin-bottom: 24px;
}

/* Step 3 Styles */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.confidence-card,
.conditions-card,
.urgency-card,
.clinical-summary,
.risk-factors,
.recommended-tests {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.confidence-card h3,
.conditions-card h3,
.urgency-card h3,
.clinical-summary h3,
.risk-factors h3,
.recommended-tests h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.confidence-card h3 i,
.conditions-card h3 i,
.urgency-card h3 i,
.clinical-summary h3 i,
.risk-factors h3 i,
.recommended-tests h3 i {
    margin-right: 8px;
}

.confidence-score {
    font-size: 32px;
    font-weight: 700;
    color: #10B981;
    text-align: center;
    margin-bottom: 16px;
}

.confidence-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(135deg, #10B981, #14B8A6);
    border-radius: 6px;
    animation: fillBar 1s ease-out 0.5s both;
}

.condition-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.condition-name {
    color: white;
    font-weight: 500;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.severity-badge.mild {
    background: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.severity-badge.moderate {
    background: rgba(245, 158, 11, 0.3);
    color: #FCD34D;
}

.severity-badge.severe {
    background: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.condition-probability {
    display: flex;
    align-items: center;
    gap: 12px;
}

.probability-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    border-radius: 4px;
    animation: fillProbability 0.8s ease-out;
}

.probability-fill.high {
    background: #EF4444;
}

.probability-fill.medium {
    background: #F59E0B;
}

.probability-fill.low {
    background: #10B981;
}

.probability-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    min-width: 35px;
}

.urgency-level {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
}

.urgency-level.low {
    background: rgba(16, 185, 129, 0.3);
}

.urgency-level.medium {
    background: rgba(245, 158, 11, 0.3);
}

.urgency-level.high {
    background: rgba(239, 68, 68, 0.3);
}

.urgency-level i {
    font-size: 24px;
    margin-right: 12px;
}

.urgency-level.low i {
    color: #10B981;
}

.urgency-level.medium i {
    color: #F59E0B;
}

.urgency-level.high i {
    color: #EF4444;
}

.urgency-level p {
    color: white;
    font-weight: 500;
    margin-bottom: 4px;
}

.urgency-level span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Step 4 Styles */
.doctor-review-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

.doctor-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.doctor-info h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.doctor-info h3 i {
    margin-right: 8px;
}

.doctor-profile {
    text-align: center;
    margin-bottom: 24px;
}

.doctor-avatar {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.doctor-avatar i {
    font-size: 48px;
    color: white;
}

.doctor-profile h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.doctor-profile p {
    color: rgba(147, 197, 253, 1);
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
}

.detail-item i {
    margin-right: 8px;
}

.review-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.review-progress h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.review-progress h3 i {
    margin-right: 8px;
}

.review-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.review-step {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
}

.review-step.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(99, 102, 241, 0.5));
}

.review-step.completed {
    background: rgba(16, 185, 129, 0.3);
}

.review-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.review-step.active .review-step-icon {
    background: white;
    color: #3B82F6;
    animation: pulse 1s infinite;
}

.review-step.completed .review-step-icon {
    background: #10B981;
    color: white;
}

.review-step-text {
    flex: 1;
    color: white;
    font-weight: 500;
}

.review-step.active .review-step-progress {
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    border-radius: 2px;
    margin-top: 8px;
    animation: progressGrow 2s ease-out;
}

.review-complete {
    text-align: center;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 32px;
}

/* Step 5 Styles */
.chat-interface {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doctor-info-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar-mini {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar-mini i {
    font-size: 24px;
    color: white;
}

.doctor-info-mini h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.online-status {
    display: flex;
    align-items: center;
    color: #10B981;
    font-size: 14px;
}

.online-status i {
    font-size: 8px;
    margin-right: 4px;
}

.chat-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 🔄 MODIFIED: Removed max-height and overflow-y */
.chat-messages {
    padding: 24px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideInLeft 0.3s ease-out;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    font-size: 16px;
    color: white;
}

.message-content {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 12px 16px;
    max-width: 400px;
}

.message-content p {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.typing-indicator {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.typing-dots {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingDot 1.5s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Step 6 Styles */
.question-progress {
    margin-bottom: 32px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #10B981, #14B8A6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.question-container {
    margin-bottom: 32px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-dots {
    display: flex;
    gap: 8px;
}

.question-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.question-dot.active {
    background: #10B981;
    transform: scale(1.25);
}

.question-dot.completed {
    background: #10B981;
}

/* Step 7 Styles */
.diagnosis-analysis {
    margin-bottom: 32px;
}

.ai-processing {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.diagnosis-results {
    animation: fadeInUp 0.5s ease-out;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.primary-diagnosis,
.clinical-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.primary-diagnosis h3,
.clinical-details h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.primary-diagnosis h3 i,
.clinical-details h3 i {
    margin-right: 8px;
}

.diagnosis-main {
    text-align: center;
    margin-bottom: 24px;
}

.diagnosis-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.diagnosis-icon i {
    font-size: 32px;
    color: white;
}

.diagnosis-main h4 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.diagnosis-main p {
    color: #6EE7B7;
}

.diagnosis-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 4px;
}

.stat-value:last-child {
    color: #F59E0B;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.clinical-details .detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.clinical-details .detail-item i {
    color: #3B82F6;
    margin-right: 12px;
    margin-top: 2px;
}

.clinical-details .detail-item strong {
    color: white;
    display: block;
    margin-bottom: 4px;
}

.clinical-details .detail-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.treatment-recommendations {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.treatment-recommendations h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.treatment-recommendations h3 i {
    margin-right: 8px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.immediate-care h4,
.warning-signs h4 {
    color: white;
    font-weight: 500;
    margin-bottom: 12px;
}

.follow-up-info {
    display: flex;
    align-items: flex-start;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.follow-up-info i {
    color: #3B82F6;
    font-size: 20px;
    margin-right: 16px;
    margin-top: 4px;
}

.follow-up-info h3 {
    color: #93C5FD;
    font-weight: 600;
    margin-bottom: 16px;
}

.follow-up-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.follow-up-details p {
    color: #DBEAFE;
    font-size: 14px;
    margin-bottom: 4px;
}

.follow-up-details strong {
    color: white;
}

/* Step 8 Styles */
.prescription-generating {
    text-align: center;
    padding: 48px 24px;
}

.prescription-generating h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.prescription-generating p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.generation-steps {
    max-width: 400px;
    margin: 0 auto;
}

.gen-step {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.gen-step.completed {
    background: rgba(16, 185, 129, 0.3);
}

.gen-step.active {
    background: rgba(139, 92, 246, 0.3);
}

.gen-step i {
    color: #10B981;
    margin-right: 12px;
}

.gen-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

.gen-step span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.prescription-display {
    animation: fadeInUp 0.5s ease-out;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.prescription-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.prescription-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.prescription-details strong {
    color: white;
}

.verification-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.verification-badge i {
    color: #10B981;
    font-size: 32px;
    margin-bottom: 8px;
}

.verification-badge p {
    color: #6EE7B7;
    font-weight: 500;
    font-size: 14px;
}

.prescription-body {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.doctor-patient-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.info-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.info-section strong {
    color: white;
    font-weight: 600;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.medications-section,
.instructions-section {
    margin-bottom: 24px;
}

.medications-section h3,
.instructions-section h3 {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.medications-section h3 i,
.instructions-section h3 i {
    margin-right: 8px;
}

.pharmacy-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.pharmacy-info h3 {
    color: #93C5FD;
    font-weight: 600;
    margin-bottom: 12px;
}

.pharmacy-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    color: #DBEAFE;
    font-size: 14px;
}

.pharmacy-details strong {
    color: white;
}

.prescription-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.send-options,
.process-complete {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.send-options h3,
.process-complete h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.send-methods {
    margin-bottom: 16px;
}

.send-methods label {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.send-methods input[type="radio"] {
    margin-right: 8px;
}

.send-methods i {
    margin-right: 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.completion-status {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.completion-status i {
    color: #10B981;
    font-size: 32px;
    margin-right: 16px;
}

.completion-status p {
    color: #6EE7B7;
    font-weight: 500;
    margin-bottom: 4px;
}

.completion-status span {
    color: #A7F3D0;
    font-size: 14px;
}

.final-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prescription-sent {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 24px;
    animation: fadeInScale 0.5s ease-out;
}

.prescription-sent i {
    color: #10B981;
    font-size: 48px;
    margin-bottom: 16px;
}

.prescription-sent h3 {
    color: #6EE7B7;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.prescription-sent p {
    color: #A7F3D0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-right {
        gap: 16px;
    }
    
    .nav-secure {
        display: none;
    }
    
    .progress-container {
        padding: 0 16px;
    }
    
    .step-content {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .summary-grid,
    .doctor-review-grid,
    .diagnosis-grid,
    .recommendations-grid,
    .prescription-actions {
        grid-template-columns: 1fr;
    }
    
    .follow-up-details,
    .doctor-patient-info,
    .pharmacy-details {
        grid-template-columns: 1fr;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .step-item {
        min-width: 80px;
    }
}