/* Accessibility Enhancements for ICAA Members Platform */

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 1000;
    background: #4A90E2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* Focus indicators for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Better touch targets for mobile (minimum 44x44px) */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 20px;
    }

    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
    }

    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .card {
        margin-bottom: 20px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .dropdown-item {
        min-height: 44px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
    }

    /* Larger notification badges */
    .badge {
        min-width: 24px;
        min-height: 24px;
        font-size: 0.85rem;
    }

    /* Better spacing for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Stack cards vertically on mobile */
    .row > [class*='col-'] {
        margin-bottom: 15px;
    }

    /* Make hero section more compact on mobile */
    .hero-section {
        padding: 30px 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Better table responsiveness */
    .table-responsive {
        margin-bottom: 1rem;
    }

    /* Larger profile images on mobile */
    .rounded-circle {
        max-width: 100%;
        height: auto;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Better contrast for links */
a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

a:hover, a:focus {
    text-decoration-color: currentColor;
}

.nav-link {
    text-decoration: none;
}

/* Error messages with better visibility */
.invalid-feedback {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Loading states */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Better form labels */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Required field indicator */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* Keyboard navigation highlights */
.dropdown-item:focus {
    background-color: #4A90E2;
    color: white;
}

.list-group-item:focus {
    z-index: 2;
    color: #495057;
    background-color: #e9ecef;
    border-color: #4A90E2;
}

/* Better visibility for disabled elements */
.disabled, :disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Improve readability */
body {
    line-height: 1.6;
}

p {
    margin-bottom: 1rem;
}

/* Better spacing for lists */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}
