/* Focus Trap Example Styles */

.example-section .page-content {
    margin-bottom: 2rem;
}

.example-section .background-elements {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.example-section .background-input {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Modal Styles */
.example-section .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.example-section .modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.example-section .modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.example-section .modal-content p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.example-section .modal-form {
    margin-top: 1rem;
}

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

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

.example-section .modal-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.example-section .modal-form input:focus {
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.25);
    outline: none;
}

.example-section .modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.example-section .modal-buttons .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

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

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

/* Focus management for good example */
.example-section .modal[aria-modal="true"] {
    /* Ensure modal is properly announced */
}

/* Button styles */
.example-section .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

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

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

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

/* Focus styles */
.example-section .btn:focus,
.example-section .modal-form input:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
} 