/*
|--------------------------------------------------------------------------
| Global Search Modal Styles
|--------------------------------------------------------------------------
| Styles for the modern global search modal, search bar, accordion, and footer.
| Move/adjust as needed for your build system (Laravel Mix, Vite, etc).
*/
.modal-content .accordion {
    background: inherit !important;
}

.modal-content .accordion-item {
    background: #fff;
    border: none;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
    overflow: hidden;
}
.modal-content .accordion-item:last-child {
    margin-bottom: 0;
}
.modal-content .accordion-header {
    background: transparent;
    border: none;
    padding: 0;
}
.modal-content .accordion-button {
    background: #f8f9fa;
    color: #222;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.08rem;
    border: none;
    border-radius: 1rem;
    box-shadow: none;
    padding: 0.85rem 1.25rem;
    transition: background 0.2s, color 0.2s;
}
.modal-content .accordion-button.collapsed {
    background: #fff;
    color: #495057;
}
.modal-content .accordion-button:focus {
    box-shadow: 0 0 0 2px #e3e7ed;
    outline: none;
}
.modal-content .accordion-button:not(.collapsed) {
    background: #e9ecef;
    color: #0d6efd;
}
.modal-content .accordion-button::after {
    filter: none;
    color: #adb5bd;
    font-size: 1.1rem;
}
/* Remove default Bootstrap accordion borders */
.modal-content .accordion-item,
.modal-content .accordion-item .accordion-header,
.modal-content .accordion-item .accordion-collapse {
    border: none !important;
}

/* Dark mode for accordion */
[data-bs-theme="dark"] .modal-content .accordion {
    background: #23272b;
}
[data-bs-theme="dark"] .modal-content .accordion-item {
    background: #23272b;
    box-shadow: 0 1.5px 8px 0 rgba(0,0,0,0.28);
    transition: box-shadow 0.2s, border-color 0.2s;
}
[data-bs-theme="dark"] .modal-content .accordion-button:focus {
    box-shadow: 0 0 0 2px #339af0, 0 2px 8px 0 rgba(51,154,240,0.18);
    outline: none;
    border-color: #339af0;
}
[data-bs-theme="dark"] .modal-content .accordion-button:not(.collapsed) {
    background: #181a1b;
    color: #66b0ff;
    box-shadow: 0 0 0 2px #339af0, 0 2px 8px 0 rgba(51,154,240,0.10);
    border-color: #339af0;
}
[data-bs-theme="dark"] .modal-content .accordion-button {
    background: #23272b;
    color: #f8f9fa;
}
[data-bs-theme="dark"] .modal-content .accordion-button.collapsed {
    background: #181a1b;
    color: #adb5bd;
}
[data-bs-theme="dark"] .modal-content .accordion-button:not(.collapsed) {
    background: #181a1b;
    color: #66b0ff;
}

/* Search bar styles */
.modal-content .search-container {
    position: relative;
    width: 100%;
}
.modal-content .search-container input.form-control {
    border: none;
    background: #f8f9fa;
    border-radius: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    padding-left: 1.5rem;
    padding-right: 3.2rem;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    height: 48px;
    transition: background 0.2s, box-shadow 0.2s;
}
.modal-content .search-container input.form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #e3e7ed, 0 2px 12px 0 rgba(0,0,0,0.10);
}
.modal-content .search-container input.form-control::placeholder {
    color: #adb5bd;
}
.modal-content .search-container button.search-submit-btn {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #0d6efd;
    font-size: 1.5rem;
    width: 2.3rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    padding: 0;
}
.modal-content .search-container button.search-submit-btn:hover,
.modal-content .search-container button.search-submit-btn:active {
    background: #e9ecef;
    color: #0a58ca;
}
.modal-content .search-container button.search-submit-btn i {
    font-size: 1.35rem;
}
/* Dark mode support for search bar */
[data-bs-theme="dark"] .modal-content .search-container input.form-control {
    background: rgba(255,255,255,0.10);
    color: #f8f9fa;
    border: 1.5px solid #495057;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
[data-bs-theme="dark"] .modal-content .search-container input.form-control:focus {
    background: rgba(255,255,255,0.16);
    box-shadow: 0 0 0 2px #66b0ff, 0 2px 8px 0 rgba(0,0,0,0.22);
    border-color: #66b0ff;
}
[data-bs-theme="dark"] .modal-content .search-container input.form-control::placeholder {
    color: #e0e3e8;
    opacity: 1;
}
[data-bs-theme="dark"] .modal-content .search-container button.search-submit-btn {
    color: #66b0ff;
}
[data-bs-theme="dark"] .modal-content .search-container button.search-submit-btn:hover,
[data-bs-theme="dark"] .modal-content .search-container button.search-submit-btn:active {
    background: #23272b;
    color: #339af0;
}

/* Minimal modal footer styles */
.modal-footer.modern-footer {
    border: none;
    background: transparent;
    padding: 1.25rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.modal-footer.modern-footer .modern-close-btn {
    width: auto;
    min-width: 0;
    border-radius: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: #0d6efd;
    border: 1.5px solid #0d6efd;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.modal-footer.modern-footer .modern-close-btn:focus {
    border-color: #339af0;
    color: #339af0;
    background: #f3f7ff;
}
.modal-footer.modern-footer .modern-close-btn:hover {
    background: #e9ecef;
    color: #0a58ca;
    border-color: #0a58ca;
}
.modal-footer.modern-footer .modern-close-btn i {
    font-size: 1.1rem;
    margin-right: 0.15rem;
}
/* Dark mode for modal footer */
[data-bs-theme="dark"] .modal-footer.modern-footer {
    background: transparent;
}
[data-bs-theme="dark"] .modal-footer.modern-footer .modern-close-btn {
    background: transparent;
    color: #66b0ff;
    border: 1.5px solid #66b0ff;
}
[data-bs-theme="dark"] .modal-footer.modern-footer .modern-close-btn:focus {
    border-color: #339af0;
    color: #339af0;
    background: #23272b;
}
[data-bs-theme="dark"] .modal-footer.modern-footer .modern-close-btn:hover {
    background: #181a1b;
    color: #339af0;
    border-color: #339af0;
}
