/* Focus Indicator Example Styles */

.example-section .demo-navigation {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.example-section .main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.example-section .nav-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.example-section .nav-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Good version - visible focus indicators */
.example-section .nav-link:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
    background-color: #e3f2fd;
    border-color: #007acc;
}

.example-section .demo-form {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.example-section .demo-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.example-section .form-group {
    margin-bottom: 1.5rem;
}

.example-section .form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.example-section .form-group input,
.example-section .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.example-section .form-group input:focus,
.example-section .form-group textarea:focus {
    border-color: #007acc;
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

.example-section .button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.example-section .demo-buttons {
    margin-top: 2rem;
}

.example-section .demo-buttons h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.example-section .button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.example-section .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.example-section .btn-primary {
    background-color: #007acc;
    color: white;
}

.example-section .btn-primary:hover {
    background-color: #005a9e;
}

.example-section .btn-primary:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
    background-color: #005a9e;
}

.example-section .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.example-section .btn-secondary:hover {
    background-color: #545b62;
}

.example-section .btn-secondary:focus {
    outline: 3px solid #6c757d;
    outline-offset: 2px;
    background-color: #545b62;
}

.example-section .btn-danger {
    background-color: #dc3545;
    color: white;
}

.example-section .btn-danger:hover {
    background-color: #c82333;
}

.example-section .btn-danger:focus {
    outline: 3px solid #dc3545;
    outline-offset: 2px;
    background-color: #c82333;
}

/* Bad version - no visible focus indicators */
.example-section.bad-version .nav-link:focus,
.example-section.bad-version .form-group input:focus,
.example-section.bad-version .form-group textarea:focus,
.example-section.bad-version .btn:focus {
    outline: none;
    border-color: #ced4da;
    background-color: inherit;
}

.example-section.bad-version .nav-link:focus {
    background-color: white;
    border-color: #dee2e6;
}

.example-section.bad-version .btn-primary:focus {
    background-color: #007acc;
}

.example-section.bad-version .btn-secondary:focus {
    background-color: #6c757d;
}

.example-section.bad-version .btn-danger:focus {
    background-color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .example-section .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .example-section .button-group,
    .example-section .button-row {
        flex-direction: column;
    }
    
    .example-section .demo-form {
        padding: 1rem;
    }
} 