/* Accessibility and UX improvements */

/* Skip links for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Improved focus indicators */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Better contrast for links */
a {
    text-decoration-skip-ink: auto;
}

a:hover, a:focus {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Improved loading states */
.spinner-border {
    color: #007bff;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Better typography for Hungarian text */
.hungarian-text {
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    line-height: 1.6;
}

/* Sticky CTA for mobile */
@media (max-width: 768px) {
    .sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #dc3545;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .sticky-cta .btn {
        width: 100%;
        color: white;
        border: none;
    }
}

/* Improved form accessibility */
.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 1.5rem;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* Card improvements */
.exam-type-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.exam-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Navigation improvements */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: currentColor;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}