/**
 * Yamaha Warranty Cases Plugin Styles
 *
 * @package Yamaha_Warranty_Cases
 */

.yamaha-warranty-cases-container {
    max-width: 1200px;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Header Section */
.yamaha-warranty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.yamaha-warranty-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.75rem;
    font-weight: 600;
}

.yamaha-warranty-header #create-case-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filters Section */
.yamaha-warranty-filters {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.yamaha-warranty-filters .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.yamaha-warranty-filters .form-select,
.yamaha-warranty-filters .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.yamaha-warranty-filters .form-select:focus,
.yamaha-warranty-filters .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* DataTable Content Section */
.yamaha-warranty-content {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* DataTable Customization */
#warranty-cases-table {
    width: 100% !important;
}

#warranty-cases-table thead th {
    background-color: #495057;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

#warranty-cases-table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

#warranty-cases-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Action Buttons */
.btn-group-sm .btn {
    padding: 4px 8px;
    font-size: 0.875rem;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* DataTables Controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px 8px;
    margin: 0 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px;
    margin-left: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0d6efd;
    color: #fff !important;
    border-color: #0d6efd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yamaha-warranty-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .yamaha-warranty-header #create-case-btn {
        width: 100%;
        justify-content: center;
    }

    .yamaha-warranty-filters .row {
        gap: 15px 0;
    }

    #warranty-cases-table {
        font-size: 0.875rem;
    }

    #warranty-cases-table thead th,
    #warranty-cases-table tbody td {
        padding: 8px 4px;
    }

    .btn-group-sm {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
}

/* Loading State */
.rlm-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Empty State */
.dataTables_empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Success Alert */
.yamaha-success-alert {
    margin: 20px 0;
    border-radius: 6px;
}

/* Toast Notification Styles */
.toast {
    min-width: 250px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.text-bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

.toast.text-bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.toast.text-bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.toast.text-bg-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.toast-body {
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.toast .btn-close {
    opacity: 0.7;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Create/Edit Form Styles */
.yamaha-warranty-form-container {
    max-width: 1200px;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.yamaha-warranty-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.yamaha-warranty-form-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.75rem;
    font-weight: 600;
}

.yamaha-warranty-form-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.section-heading {
    color: #495057;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-heading:first-of-type {
    margin-top: 15px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Form Validation Styles */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.form-label .text-danger {
    margin-left: 2px;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form Input Focus Styles */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Textarea Resize */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Loading Spinner on Submit Button */
#submitCaseBtn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    margin-left: 8px;
}

#submitCaseBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading Overlay */
.yamaha-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.yamaha-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Service Dealer Enhanced Dropdown Styles */
.service-dealer-dropdown {
    position: relative;
}

.service-dealer-dropdown .dropdown-toggle {
    cursor: pointer;
}

.service-dealer-dropdown .dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.service-dealer-list {
    max-height: 300px;
    overflow-y: auto;
}

.service-dealer-dropdown .dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-dealer-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.service-dealer-dropdown .dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}

.service-dealer-dropdown .dropdown-divider {
    margin: 0.25rem 0;
}

/* Dropdown loading state */
#serviceDealerLoading {
    text-align: center;
    color: #6c757d;
}

#serviceDealerNoResults {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Scrollbar styling for dropdown */
.service-dealer-list::-webkit-scrollbar {
    width: 8px;
}

.service-dealer-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.service-dealer-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.service-dealer-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form Responsive Design */
@media (max-width: 768px) {
    .yamaha-warranty-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .yamaha-warranty-form-content {
        padding: 10px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .service-dealer-dropdown .dropdown-menu {
        max-height: 300px;
    }

    .service-dealer-list {
        max-height: 200px;
    }
}


/* ==========================================
   FILE UPLOAD INTERFACE STYLES - STAGE 1
   ========================================== */

/* File input styling */
#warrantyFiles {
    cursor: pointer;
}

#warrantyFiles:hover {
    border-color: #0d6efd;
}

/* File preview container */
.file-preview-container {
    margin-top: 20px;
}

.file-preview-container .card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.file-preview-container .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
}

.file-preview-container .card-header h6 {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.file-preview-container .card-body {
    padding: 16px;
}

/* File preview list */
.file-preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual file preview item */
.file-preview-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-preview-item:hover {
    background: #e9ecef;
    border-color: #cbd3da;
}

.file-preview-icon {
    flex-shrink: 0;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-info {
    flex-grow: 1;
    min-width: 0; /* Enables text truncation */
}

.file-preview-name {
    font-weight: 500;
    color: #212529;
    word-break: break-word;
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-preview-actions {
    flex-shrink: 0;
    margin-left: 12px;
}

/* Remove file button */
.remove-file-btn {
    padding: 4px 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn i {
    font-size: 1.25rem;
}

/* Upload progress container */
.upload-progress-container {
    margin-top: 20px;
}

.upload-progress-container .card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.upload-progress-container .card-header {
    background-color: #e3f2fd;
    border-bottom: 1px solid #90caf9;
    padding: 12px 16px;
}

.upload-progress-container .card-header h6 {
    color: #1976d2;
    font-weight: 600;
    margin: 0;
}

.upload-progress-container .card-body {
    padding: 16px;
}

/* Upload progress items */
.upload-progress-item {
    margin-bottom: 16px;
}

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

.upload-progress-filename {
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-progress-status {
    font-size: 0.875rem;
    color: #6c757d;
}

.upload-progress-status.success {
    color: #28a745;
}

.upload-progress-status.error {
    color: #dc3545;
}

/* Upload Progress Bar Styling */
#uploadProgressContainer .progress {
    height: 25px;
    border-radius: 6px;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#uploadProgressBar {
    font-size: 14px;
    font-weight: 500;
    transition: width 0.3s ease;
}

#uploadProgressText {
    font-size: 15px;
    font-weight: 500;
}

/* Progress bar styling */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.progress-bar.bg-success {
    background-color: #28a745 !important;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

/* File type icons colors */
.file-preview-icon .bi-file-image {
    color: #17a2b8 !important;
}

.file-preview-icon .bi-file-pdf {
    color: #dc3545 !important;
}

.file-preview-icon .bi-file-word {
    color: #2b579a !important;
}

.file-preview-icon .bi-file-excel {
    color: #217346 !important;
}

/* Responsive design for file uploads */
@media (max-width: 768px) {
    .file-preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .file-preview-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .file-preview-actions {
        margin-left: 0;
        width: 100%;
    }

    .remove-file-btn {
        width: 100%;
        justify-content: center;
    }

    .file-preview-name {
        font-size: 0.9375rem;
    }
}

/* Animation for file preview appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-preview-item {
    animation: fadeInUp 0.3s ease;
}

/* Clear all files button */
#clearAllFiles {
    font-size: 0.875rem;
    padding: 4px 12px;
}

#clearAllFiles:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Existing Files Display (Edit Mode) - Stage 5 */
.existing-files-container {
    margin-bottom: 1.5rem;
}

.existing-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.existing-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.existing-file-item:hover {
    background-color: #e9ecef;
}

.existing-file-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 2rem;
}

.existing-file-icon .bi-file-pdf {
    color: #dc3545;
}

.existing-file-icon .bi-file-image,
.existing-file-icon .bi-image {
    color: #0d6efd;
}

.existing-file-icon .bi-file-word,
.existing-file-icon .bi-file-text {
    color: #2b579a;
}

.existing-file-icon .bi-file-excel,
.existing-file-icon .bi-file-spreadsheet {
    color: #217346;
}

.existing-file-icon .bi-file-earmark-text {
    color: #6c757d;
}

.existing-file-info {
    flex: 1;
    min-width: 0;
}

.existing-file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.existing-file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.existing-file-actions {
    flex-shrink: 0;
    margin-left: 1rem;
}

.existing-file-actions .btn {
    font-size: 0.875rem;
}

.no-files-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-files-message .bi {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive for existing files */
@media (max-width: 576px) {
    .existing-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .existing-file-icon {
        margin-right: 0;
    }

    .existing-file-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .existing-file-actions {
        width: 100%;
        margin-left: 0;
    }

    .existing-file-actions .btn {
        width: 100%;
    }
}

/**
 * ==========================================
 * REQUIREMENTS CHECKLIST STYLES
 * ==========================================
 */

/* Requirements Checklist Container */
.requirements-checklist {
    padding: 0.5rem 0;
}

/* Individual Requirement Item */
.requirement-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.requirement-item:hover {
    background-color: #f1f3f5;
}

/* Requirement Label */
.requirement-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
}

/* Requirement Label with Input (for "Other" section) */
.requirement-label-with-input {
    width: 100%;
    margin-bottom: 0.5rem;
}

.requirement-label-with-input .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

/* Button Group Container */
.requirement-toggles {
    display: inline-flex;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Requirement Toggle Buttons */
.requirement-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #6c757d;
}

.requirement-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    z-index: 1;
}

.requirement-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
    z-index: 2;
}

/* Status Emoji Styling */
.status-emoji {
    font-size: 1rem;
    margin-right: 0.25rem;
    display: inline-block;
}

/* Active Button States */
.requirement-btn.active[data-status="done"] {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
    font-weight: 600;
}

.requirement-btn.active[data-status="done"]:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.requirement-btn.active[data-status="incomplete"] {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: 600;
}

.requirement-btn.active[data-status="incomplete"]:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.requirement-btn.active[data-status="na"] {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    font-weight: 600;
}

.requirement-btn.active[data-status="na"]:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Character Counter Styling */
#requirementOtherCounter {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#requirementOtherCounter.text-warning {
    font-weight: 500;
}

#requirementOtherCounter.text-danger {
    font-weight: 600;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .requirement-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .requirement-label {
        margin-bottom: 0;
        flex: 1;
    }

    .requirement-label-with-input {
        flex: 1;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .requirement-toggles {
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .requirement-btn {
        flex: 1;
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .status-emoji {
        font-size: 0.85rem;
        margin-right: 0.15rem;
    }
}

/* Extra small screens - keep buttons horizontal but make them more compact */
@media (max-width: 400px) {
    .requirement-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .status-emoji {
        font-size: 0.8rem;
        margin-right: 0.1rem;
    }

    /* Make button text even more compact on very small screens */
    .requirement-toggles {
        width: 100%;
        justify-content: space-between;
    }
}

/* Card Header Styling (consistent with other sections) */
.card-header.bg-info {
    background-color: #0dcaf0 !important;
}

.card-header h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Input Field Styling within Checklist */
#requirementOtherText {
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#requirementOtherText:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Accessibility Improvements */
.requirement-btn:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .requirement-btn:not(.active) {
        display: none;
    }

    .requirement-btn.active {
        border: 2px solid currentColor;
    }

    .requirement-item {
        page-break-inside: avoid;
    }
}
