/* Diagnostic Tool Specific Styles */

.diagnostic-tool {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.diagnostic-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.diagnostic-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.diagnostic-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 20%;
    transition: width 0.6s ease;
    border-radius: 20px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 20px;
    animation: shimmer 2s infinite;
}

/* Progress Fill Completed State */
.progress-fill.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: all 0.8s ease;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.progress-fill.completed::after {
    animation: none;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    animation: completedGlow 3s ease-in-out infinite;
}

.progress-fill.completed::before {
    content: '✓';
    position: absolute;
    right: 10px;
    top: -20px;
    color: #28a745;
    font-size: 1.2rem;
    font-weight: bold;
    animation: checkmark 0.8s ease-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.6s ease;
}

.progress-text.completed {
    color: #28a745;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
}

.breadcrumb.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.breadcrumb:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--gray);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.6s ease;
}

.question {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.question.active {
    opacity: 1;
    transform: translateX(0);
}

.question.exit {
    opacity: 0;
    transform: translateX(-30px);
}

.question h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.question h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.question p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--gray);
    text-align: center;
}

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

.option {
    background: rgba(0, 113, 188, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(0, 113, 188, 0.1);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
}

.option.selected {
    background: rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.2);
    transform: scale(1.02);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.option-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.option-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: help;
    margin-left: 10px;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.option-tooltip:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Prerequisites Section */
.prerequisites {
    background: rgba(40, 167, 69, 0.05);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.prerequisites h4 {
    color: var(--success);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.prerequisites h4::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.1rem;
}

.prerequisite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prerequisite-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prerequisite-item:last-child {
    margin-bottom: 0;
}

.prerequisite-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prerequisite-content {
    flex: 1;
}

.prerequisite-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.prerequisite-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.3;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 40px auto 0;
    gap: 20px;
    padding: 0 20px;
}

.nav-btn {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.diagnostic-back-btn {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.diagnostic-back-btn:hover {
    background: var(--gray);
    color: white;
    transform: translateY(-2px);
}

.diagnostic-home-btn {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

.diagnostic-home-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

/* Mobile Navigation Buttons */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

/* Back button visibility animation */
.diagnostic-back-btn {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.diagnostic-back-btn[style*="display: inline-flex"],
.diagnostic-back-btn[style*="display: flex"] {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced progress bar */
.progress-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 20%;
    transition: width 0.6s ease;
    border-radius: 20px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 20px;
    animation: shimmer 2s infinite;
}

/* Progress Fill Completed State */
.progress-fill.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: all 0.8s ease;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.progress-fill.completed::after {
    animation: none;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    animation: completedGlow 3s ease-in-out infinite;
}

.progress-fill.completed::before {
    content: '✓';
    position: absolute;
    right: 10px;
    top: -20px;
    color: #28a745;
    font-size: 1.2rem;
    font-weight: bold;
    animation: checkmark 0.8s ease-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.6s ease;
}

.progress-text.completed {
    color: #28a745;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
}

.breadcrumb.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.breadcrumb:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--gray);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.6s ease;
}

.question {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.question.active {
    opacity: 1;
    transform: translateX(0);
}

.question.exit {
    opacity: 0;
    transform: translateX(-30px);
}

.question h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.question h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.question p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--gray);
    text-align: center;
}

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

.option {
    background: rgba(0, 113, 188, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(0, 113, 188, 0.1);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
}

.option.selected {
    background: rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.2);
    transform: scale(1.02);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.option-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.option-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: help;
    margin-left: 10px;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.option-tooltip:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Prerequisites Section */
.prerequisites {
    background: rgba(40, 167, 69, 0.05);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.prerequisites h4 {
    color: var(--success);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.prerequisites h4::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.1rem;
}

.prerequisite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prerequisite-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prerequisite-item:last-child {
    margin-bottom: 0;
}

.prerequisite-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prerequisite-content {
    flex: 1;
}

.prerequisite-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.prerequisite-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.3;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 40px auto 0;
    gap: 20px;
    padding: 0 20px;
}

.nav-btn {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.diagnostic-back-btn {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.diagnostic-back-btn:hover {
    background: var(--gray);
    color: white;
    transform: translateY(-2px);
}

.diagnostic-home-btn {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

.diagnostic-home-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

/* Mobile Navigation Buttons */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

/* Back button visibility animation */
.diagnostic-back-btn {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.diagnostic-back-btn[style*="display: inline-flex"],
.diagnostic-back-btn[style*="display: flex"] {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced progress bar */
.progress-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 20%;
    transition: width 0.6s ease;
    border-radius: 20px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 20px;
    animation: shimmer 2s infinite;
}

/* Progress Fill Completed State */
.progress-fill.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: all 0.8s ease;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.progress-fill.completed::after {
    animation: none;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    animation: completedGlow 3s ease-in-out infinite;
}

.progress-fill.completed::before {
    content: '✓';
    position: absolute;
    right: 10px;
    top: -20px;
    color: #28a745;
    font-size: 1.2rem;
    font-weight: bold;
    animation: checkmark 0.8s ease-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.6s ease;
}

.progress-text.completed {
    color: #28a745;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
}

.breadcrumb.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.breadcrumb:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--gray);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.6s ease;
}

.question {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.question.active {
    opacity: 1;
    transform: translateX(0);
}

.question.exit {
    opacity: 0;
    transform: translateX(-30px);
}

.question h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.question h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.question p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--gray);
    text-align: center;
}

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

.option {
    background: rgba(0, 113, 188, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(0, 113, 188, 0.1);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
}

.option.selected {
    background: rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.2);
    transform: scale(1.02);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.option-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.option-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: help;
    margin-left: 10px;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.option-tooltip:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Prerequisites Section */
.prerequisites {
    background: rgba(40, 167, 69, 0.05);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.prerequisites h4 {
    color: var(--success);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.prerequisites h4::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.1rem;
}

.prerequisite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prerequisite-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prerequisite-item:last-child {
    margin-bottom: 0;
}

.prerequisite-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prerequisite-content {
    flex: 1;
}

.prerequisite-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.prerequisite-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.3;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 40px auto 0;
    gap: 20px;
    padding: 0 20px;
}

.nav-btn {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.diagnostic-back-btn {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.diagnostic-back-btn:hover {
    background: var(--gray);
    color: white;
    transform: translateY(-2px);
}

.diagnostic-home-btn {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

.diagnostic-home-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

/* Compliance Diagnostic Specific Styles */

/* Feedback styles */
.feedback-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.feedback-content.active {
    opacity: 1;
    transform: translateX(0);
}

.feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.feedback-header .feedback-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.feedback-header .feedback-icon.critical {
    color: #dc3545;
}

.feedback-header .feedback-icon.high {
    color: #fd7e14;
}

.feedback-header .feedback-icon.medium {
    color: #ffc107;
}

.feedback-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feedback-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feedback-subtitle.critical {
    color: #dc3545;
}

.feedback-subtitle.high {
    color: #fd7e14;
}

.feedback-subtitle.medium {
    color: #ffc107;
}

.feedback-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    text-align: center;
}

.recommendations {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.recommendations li {
    background: rgba(0, 113, 188, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recommendations li:hover {
    background: rgba(0, 113, 188, 0.1);
    transform: translateX(5px);
}

.recommendations li strong {
    color: var(--primary);
    font-weight: 700;
}

/* Continue button for feedback sections */
.feedback-continue {
    text-align: center;
    margin-top: 30px;
}

.diagnostic-continue-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 188, 0.3);
}

.diagnostic-continue-btn:hover {
    background: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.4);
}

/* Compliance Report Styles */
.compliance-report {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.report-header {
    text-align: center;
    margin-bottom: 40px;
}

.report-header h2 {
    color: var(--primary);
    margin-bottom: 30px;
}

.report-score {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 113, 188, 0.3);
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-item {
    background: rgba(0, 113, 188, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.summary-item.critical {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.summary-item.high {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.05);
}

.summary-item.medium {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.summary-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.summary-item.critical i {
    color: #dc3545;
}

.summary-item.high i {
    color: #fd7e14;
}

.summary-item.medium i {
    color: #ffc107;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--dark);
}

.summary-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
}

.improvement-plans {
    margin-bottom: 40px;
}

.improvement-plans h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.improvement-plan {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.improvement-plan.critical {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.improvement-plan.high {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.02);
}

.improvement-plan.medium {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.02);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-header h4 {
    color: var(--dark);
    margin-bottom: 0;
    font-size: 1.3rem;
}

.priority-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: #dc3545;
    color: white;
}

.priority-badge.high {
    background: #fd7e14;
    color: white;
}

.priority-badge.medium {
    background: #ffc107;
    color: #212529;
}

.improvement-plan p {
    color: var(--gray);
    margin-bottom: 20px;
}

.improvement-plan .recommendations {
    margin-bottom: 0;
}

.next-steps {
    background: rgba(0, 113, 188, 0.05);
    border-radius: 15px;
    padding: 30px;
}

.next-steps h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.next-steps ol {
    color: var(--gray);
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Download button styles */
.diagnostic-action-btn.download {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    display: inline-block;
}

.diagnostic-action-btn.download:hover {
    background: linear-gradient(135deg, #218838, #1fa88a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Progress adjustments for longer diagnostic */
.progress-text {
    font-size: 0.95rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .compliance-report {
        padding: 25px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-item {
        padding: 20px;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .improvement-plan {
        padding: 20px;
    }
    
    .next-steps {
        padding: 20px;
    }
    
    .recommendations li {
        padding: 12px 15px;
    }
}

/* Obligations Section */
.obligations {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 113, 188, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.obligation {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.obligation:last-child {
    margin-bottom: 0;
}

.obligation.required {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); /* verde claro */
    border-color: #4ade80; /* verde */
}

.obligation.not-required {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%); /* rojo claro */
    border-color: #f87171; /* rojo */
}

.obligation-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    position: relative;
}

.obligation.required .obligation-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); /* verde */
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3); /* verde */
}

.obligation.not-required .obligation-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); /* rojo */
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3); /* rojo */
}

.obligation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.obligation-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

.obligation.required .obligation-title {
    color: #16a34a; /* verde */
}

.obligation.not-required .obligation-title {
    color: #dc2626; /* rojo */
}

/* Add status indicators */
.obligation::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.obligation.required::before {
    background: #22c55e; /* verde */
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); /* verde */
}

.obligation.not-required::before {
    background: #ef4444; /* rojo */
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); /* rojo */
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive design for obligations */
@media (max-width: 768px) {
    .obligations {
        margin: 20px 0;
        padding: 20px;
    }
    
    .obligation {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }
    
    .obligation-icon {
        align-self: center;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .obligation-title {
        font-size: 1rem;
    }
    
    .obligation-description {
        font-size: 0.9rem;
    }
    
    .obligation::before {
        top: 10px;
        right: 10px;
        width: 10px;
        height: 10px;
    }
}

/* Continue Section - Botones de continuación */
.continue-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0 20px;
}

.diagnostic-continue-btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* Result Actions - Botones de acción en resultados */
.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
    flex-wrap: wrap;
}

.diagnostic-action-btn {
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.diagnostic-action-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.diagnostic-action-btn.btn:hover {
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

/* Tooltip Popup Styles */
.diagnostic-tooltip-popup {
    position: fixed;
    background: rgba(26, 58, 83, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 280px;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.diagnostic-tooltip-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.diagnostic-tooltip-popup .tooltip-content {
    margin: 0;
    padding: 0;
}

.diagnostic-tooltip-popup .tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(26, 58, 83, 0.95);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .diagnostic-tooltip-popup {
        max-width: 250px;
        font-size: 0.85rem;
        padding: 10px 14px;
        border-radius: 6px;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px);
    }
    
    .diagnostic-tooltip-popup.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .diagnostic-tooltip-popup .tooltip-arrow {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(26, 58, 83, 0.95);
        bottom: -6px;
    }
}

/* Result Content Mobile Styles */
@media (max-width: 768px) {
    .result-content {
        padding: 0;
    }
    
    .result-header {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .result-icon {
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .result-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .result-description {
        margin-bottom: 25px;
    }
    
    .result-description p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .result-title {
        font-size: 1.3rem;
    }
    
    .result-subtitle {
        font-size: 0.95rem;
    }
    
    .result-description p {
        font-size: 0.9rem;
    }
}

/* Option Tooltip Button - Enhanced for better hover detection */
.option-tooltip,
.diagnostic-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: help;
    margin-left: 10px;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.option-tooltip:hover,
.diagnostic-tooltip:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improved touch targets */
    .option {
        min-height: 80px;
        touch-action: manipulation;
    }
    
    .nav-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .navigation-buttons {
        padding: 0 15px;
        margin-top: 25px;
    }
    
    /* Improved button visibility */
    .diagnostic-back-btn,
    .diagnostic-home-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* Better text contrast on mobile */
    .question-container {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .diagnostic-tool {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .diagnostic-header {
        margin-bottom: 20px;
    }
    
    .diagnostic-header h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .diagnostic-header p {
        font-size: 0.9rem;
    }
    
    .question-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .question h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .progress-container,
    .breadcrumbs {
        margin-bottom: 15px;
    }
    
    .navigation-buttons {
        margin-top: 20px;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .diagnostic-tool {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .diagnostic-header h1 {
        font-size: 1.5rem;
    }
    
    .question-container {
        margin-left: 0;
        margin-right: 0;
        padding: 18px 12px;
    }
    
    .option {
        padding: 10px;
        min-height: 70px;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .option-title {
        font-size: 0.9rem;
    }
    
    .option-description {
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .diagnostic-tooltip-popup {
        backdrop-filter: blur(15px);
    }
    
    .question-container {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }
    
    .option {
        box-shadow: 0 2px 8px rgba(0, 113, 188, 0.08);
    }
    
    .option:hover {
        box-shadow: 0 4px 15px rgba(0, 113, 188, 0.18);
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure sufficient color contrast */
    .option-description {
        color: #495057;
    }
    
    .result-description p {
        color: #495057;
    }
    
    /* Better focus indicators */
    .option:focus,
    .nav-btn:focus,
    .option-tooltip:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
    
    /* Improved active states */
    .option:active {
        transform: scale(0.98);
    }
    
    .nav-btn:active {
        transform: translateY(1px);
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .diagnostic-tool {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .question-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .diagnostic-tooltip-popup {
        background: rgba(255, 255, 255, 0.95);
        color: var(--dark);
        backdrop-filter: blur(15px);
    }
    
    .diagnostic-tooltip-popup .tooltip-arrow {
        border-top-color: rgba(255, 255, 255, 0.95);
    }
}

/* Final mobile optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize font rendering */
    .diagnostic-tool {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Improve scroll behavior */
    .diagnostic-tool {
        scroll-behavior: smooth;
    }
    
    /* Better button interaction */
    .option,
    .nav-btn,
    .diagnostic-continue-btn,
    .diagnostic-action-btn {
        -webkit-tap-highlight-color: rgba(0, 113, 188, 0.1);
    }
    
    /* Optimize animations for mobile */
    .question {
        transition: all 0.4s ease;
    }
    
    .option {
        transition: all 0.2s ease;
    }
    
    /* Improve load performance */
    .progress-fill::after {
        will-change: transform;
    }
    
    /* Better visual hierarchy */
    .question h2 {
        letter-spacing: -0.5px;
    }
    
    .option-title {
        letter-spacing: -0.3px;
    }
}

/* iOS Safari specific fixes */
@media (max-width: 768px) {
    /* Fix iOS Safari viewport issues */
    .diagnostic-tool {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Fix iOS Safari button styling */
    .nav-btn,
    .diagnostic-continue-btn,
    .diagnostic-action-btn {
        -webkit-appearance: none;
        appearance: none;
        border: none;
    }
    
    /* Fix iOS Safari touch events */
    .option,
    .nav-btn {
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) {
    /* Fix Android Chrome scrolling */
    .question-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Optimize for Android performance */
    .progress-fill,
    .option {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .question,
    .option,
    .progress-fill,
    .diagnostic-tooltip-popup {
        transition: none !important;
        animation: none !important;
    }
    
    .progress-fill::after {
        animation: none !important;
    }
}

/* Print styles for mobile */
@media print {
    .diagnostic-tool {
        background: white !important;
        padding: 20px !important;
    }
    
    .navigation-buttons,
    .progress-container,
    .breadcrumbs {
        display: none !important;
    }
    
    .question-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}