html,
body,
#app {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#app {
    position: relative;
    height: 100%;
}

/* Loading indicator styles */
/* 로딩 화면 스타일 개선 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
}

.loading-container {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.loading-tips {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

/* 진행률 표시바 */
.loading-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 30px 0;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
    transition: width 0.3s ease-out;
    animation: progressGlow 2s ease-in-out infinite;
    width: 30%;
    /* 기본 진행률 */
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8), 0 0 30px rgba(0, 242, 254, 0.6);
    }
}

/* 컨베이어 벨트 애니메이션 개선 */
.conveyor-belt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.box {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    border-radius: 6px;
    animation: conveyor 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
}

.box:nth-child(2) {
    animation-delay: 0.3s;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 12px rgba(68, 160, 141, 0.3);
}

@keyframes conveyor {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* ====================================
   Bulma Modal Light Theme Override
   ==================================== */

/* 모달 배경 */
.modal.is-active .modal-background {
    background-color: rgba(10, 10, 10, 0.6);
}

/* 모달 카드 전체 */
.modal-card {
    background-color: #ffffff !important;
    box-shadow: 0 20px 60px rgba(10, 10, 10, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden;
    max-width: 640px;
    margin: 0 20px;
}

/* 모달 헤더 */
.modal-card-head {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 20px 24px !important;
    align-items: center;
}

.modal-card-title {
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
}

/* 모달 본문 - 가장 중요한 부분 */
.modal-card-body {
    background-color: #ffffff !important;
    padding: 24px !important;
    color: #212529 !important;
    max-height: 70vh;
    overflow-y: auto;
}

/* 모달 푸터 */
.modal-card-foot {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 16px 24px !important;
    justify-content: flex-end !important;
    gap: 12px;
}

/* 모달 내부 폼 요소들 */
.modal-card-body .form-label {
    color: #495057 !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.modal-card-body .form-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

.modal-card-body .form-control:focus {
    background-color: #ffffff !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    color: #212529 !important;
}

.modal-card-body .form-select {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

.modal-card-body .form-check-label {
    color: #495057 !important;
}

.modal-card-body .text-muted {
    color: #6c757d !important;
}

/* 모달 버튼 스타일 */
.modal-card-foot .button {
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease-in-out !important;
}

.modal-card-foot .button:not(.is-primary) {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.modal-card-foot .button:not(.is-primary):hover {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
}

.modal-card-foot .button.is-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
}

.modal-card-foot .button.is-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.modal-card-foot .button.is-primary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.65 !important;
}

/* 모달 닫기 버튼 */
.modal-card-head .delete {
    background-color: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6c757d !important;
    transition: all 0.15s ease-in-out !important;
}

.modal-card-head .delete:hover {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

.modal-card-head .delete::before,
.modal-card-head .delete::after {
    background-color: currentColor !important;
}

/* 입력 그룹 스타일 */
.modal-card-body .input-group .form-control {
    border-right: none !important;
}

.modal-card-body .input-group .form-control-color {
    border-left: none !important;
    padding: 4px !important;
}

/* 색상 견본 */
.modal-card-body .color-swatch {
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-card {
        margin: 0 16px !important;
        max-width: calc(100vw - 32px) !important;
    }

    .modal-card-head,
    .modal-card-body,
    .modal-card-foot {
        padding: 16px !important;
    }

    .loading-container {
        padding: 20px;
        max-width: 300px;
    }

    .loading-text {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .loading-tips {
        font-size: 0.8rem;
    }

    .box {
        width: 25px;
        height: 25px;
    }
}

/* ====================================
   Syncfusion Grid 스타일 개선
   ==================================== */

/* 그리드 헤더 텍스트 색상 개선 */
.e-grid .e-headercell .e-headercelldiv {
    color: #212529 !important;
    font-weight: 600 !important;
}

/* 그리드 헤더 배경색 개선 */
.e-grid .e-headercell {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
}

/* 그리드 헤더 텍스트 호버 효과 */
.e-grid .e-headercell:hover .e-headercelldiv {
    color: #0d6efd !important;
}

/* 그리드 툴바 버튼 스타일 개선 */
.e-grid .e-toolbar .e-btn {
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* 그리드 툴바 Add 버튼 스타일 */
.e-grid .e-toolbar .e-add::before {
    content: "\e823" !important;
    font-family: 'e-icons' !important;
}

.e-grid .e-toolbar .e-add {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.e-grid .e-toolbar .e-add:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* 그리드 셀 텍스트 색상 개선 */
.e-grid .e-rowcell {
    color: #495057 !important;
}

/* 그리드 선택된 행 스타일 */
.e-grid .e-row.e-active {
    background-color: #e7f3ff !important;
    color: #212529 !important;
}

/* 그리드 필터바 스타일 */
.e-grid .e-filterbar .e-filterbarcell .e-input {
    color: #495057 !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

.e-grid .e-filterbar .e-filterbarcell .e-input:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* 그리드 페이징 스타일 */
.e-grid .e-pager {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    color: #495057 !important;
}

.e-grid .e-pager .e-numericitem,
.e-grid .e-pager .e-currentitem {
    color: #495057 !important;
}

.e-grid .e-pager .e-currentitem {
    background-color: #0d6efd !important;
    color: white !important;
}

/* 모달창 기본 단위 설정 텍스트 스타일 */
.default-unit-label {
    color: #0d6efd !important;
    font-weight: 600 !important;
}

.default-unit-description {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

/* ===== v0 스타일 필터 드롭박스 ===== */
.filter-section-v0 {
    width: 100%;
    margin-bottom: 1rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.filter-item {
    position: relative;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.select-wrapper:hover {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.select-wrapper:focus-within {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.select-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #64748b !important;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s ease;
}

.select-wrapper:focus-within .select-icon {
    color: #475569 !important;
}

.chevron-icon {
    position: absolute;
    right: 10px;
    width: 16px;
    height: 16px;
    color: #64748b !important;
    z-index: 2;
    pointer-events: none;
    transition: all 0.2s ease;
}

.select-wrapper:hover .chevron-icon {
    color: #475569 !important;
}

.select-v0 {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 10px 40px 10px 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.15s ease;
}

.select-v0:focus {
    color: #334155 !important;
    outline: none !important;
}

/* 브라우저별 select 옵션 스타일 강제 적용 - 최대 강도 */
select.select-v0,
select.select-v0::-webkit-listbox,
select.select-v0::-moz-list,
select.select-v0::before,
select.select-v0::after {
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* 모든 브라우저의 select 드롭다운 리스트 스타일 강제 적용 */
select.select-v0 option,
select.select-v0 optgroup,
select.select-v0::-webkit-listbox option,
select.select-v0::-moz-list option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    border: none !important;
    border-color: transparent !important;
    border-width: 0 !important;
    outline: none !important;
    outline-color: transparent !important;
    outline-width: 0 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 호버/포커스/선택 상태 - 모든 브라우저 대응 */
select.select-v0 option:hover,
select.select-v0 option:focus,
select.select-v0 option:checked,
select.select-v0 option:selected,
select.select-v0 option:active,
select.select-v0::-webkit-listbox option:hover,
select.select-v0::-webkit-listbox option:focus,
select.select-v0::-webkit-listbox option:checked,
select.select-v0::-moz-list option:hover,
select.select-v0::-moz-list option:focus,
select.select-v0::-moz-list option:checked {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: none !important;
    border-color: transparent !important;
    border-width: 0 !important;
    outline: none !important;
    outline-color: transparent !important;
    outline-width: 0 !important;
    box-shadow: none !important;
}

/* Webkit 기반 브라우저 (Chrome, Safari, Edge) 전용 */
select.select-v0::-webkit-listbox {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Firefox 전용 */
select.select-v0::-moz-list {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

/* Internet Explorer/Edge Legacy 대응 */
select.select-v0::-ms-expand {
    display: none !important;
}

/* 드롭다운이 열렸을 때의 컨테이너 스타일 */
.select-wrapper:focus-within,
.select-wrapper:has(select:focus) {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* 최종 무력화 - 모든 브라우저의 select 기본 스타일 완전 제거 */
select.select-v0,
select.select-v0 *,
select.select-v0 option,
select.select-v0 optgroup {
    border-style: none !important;
    border-color: transparent !important;
    border-image: none !important;
    border-radius: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
}

/* 전역 CSS 변수로 통일된 스타일 정의 */
:root {
    --dropdown-border: 1px solid #e2e8f0;
    --dropdown-radius: 0.75rem;
    --dropdown-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --dropdown-bg: #ffffff;
    --dropdown-text: #475569;
    --dropdown-hover-bg: #f1f5f9;
    --dropdown-hover-text: #334155;
}

/* 브라우저 강제 덮어쓰기 - 최후의 수단 */
.select-wrapper,
.select-wrapper select,
.select-wrapper select option {
    border: var(--dropdown-border) !important;
    border-radius: var(--dropdown-radius) !important;
    box-shadow: var(--dropdown-shadow) !important;
    background: var(--dropdown-bg) !important;
    color: var(--dropdown-text) !important;
}

.select-wrapper select option:hover,
.select-wrapper select option:focus,
.select-wrapper select option:checked {
    background: var(--dropdown-hover-bg) !important;
    color: var(--dropdown-hover-text) !important;
}

.select-v0 option {
    background: none !important;
    color: #475569 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: none !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.select-v0 option:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.select-v0 option:checked {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.select-v0 option:selected {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.select-v0 option:focus {
    background: #f1f5f9 !important;
    color: #334155 !important;
    outline: none !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .sort-item {
        justify-self: stretch;
    }
}

/* 다크 모드 무시 - 항상 라이트 모드 스타일 유지 */
@media (prefers-color-scheme: dark) {
    .select-wrapper {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

    .select-wrapper:hover {
        background: #f1f5f9 !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

    .select-wrapper:focus-within {
        background: #f1f5f9 !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

    .select-icon {
        color: #64748b !important;
    }

    .select-wrapper:focus-within .select-icon {
        color: #475569 !important;
    }

    .chevron-icon {
        color: #64748b !important;
    }

    .select-wrapper:hover .chevron-icon {
        color: #475569 !important;
    }

    .select-v0 {
        color: #475569 !important;
    }

    .select-v0:focus {
        color: #334155 !important;
    }

    /* 다크모드에서도 최대 강도 스타일 강제 적용 */
    select.select-v0,
    select.select-v0::-webkit-listbox,
    select.select-v0::-moz-list,
    select.select-v0::before,
    select.select-v0::after {
        border: none !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

    /* 다크모드 - 모든 브라우저의 select 드롭다운 리스트 스타일 강제 적용 */
    select.select-v0 option,
    select.select-v0 optgroup,
    select.select-v0::-webkit-listbox option,
    select.select-v0::-moz-list option {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #475569 !important;
        border: none !important;
        border-color: transparent !important;
        border-width: 0 !important;
        outline: none !important;
        outline-color: transparent !important;
        outline-width: 0 !important;
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    /* 다크모드 - 호버/포커스/선택 상태 - 모든 브라우저 대응 */
    select.select-v0 option:hover,
    select.select-v0 option:focus,
    select.select-v0 option:checked,
    select.select-v0 option:selected,
    select.select-v0 option:active,
    select.select-v0::-webkit-listbox option:hover,
    select.select-v0::-webkit-listbox option:focus,
    select.select-v0::-webkit-listbox option:checked,
    select.select-v0::-moz-list option:hover,
    select.select-v0::-moz-list option:focus,
    select.select-v0::-moz-list option:checked {
        background: #f1f5f9 !important;
        background-color: #f1f5f9 !important;
        color: #334155 !important;
        border: none !important;
        border-color: transparent !important;
        border-width: 0 !important;
        outline: none !important;
        outline-color: transparent !important;
        outline-width: 0 !important;
        box-shadow: none !important;
    }

    /* 다크모드 - Webkit 기반 브라우저 전용 */
    select.select-v0::-webkit-listbox {
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 다크모드 - Firefox 전용 */
    select.select-v0::-moz-list {
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
        background: #ffffff !important;
    }

    /* 다크모드 - 드롭다운이 열렸을 때의 컨테이너 스타일 */
    .select-wrapper:focus-within,
    .select-wrapper:has(select:focus) {
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

    .select-v0 option {
        background: none !important;
        color: #475569 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        border: none !important;
        outline: none !important;
        transition: all 0.15s ease !important;
    }

    .select-v0 option:hover {
        background: #f1f5f9 !important;
        color: #334155 !important;
    }

    .select-v0 option:checked {
        background: #f1f5f9 !important;
        color: #334155 !important;
        font-weight: 500 !important;
    }

    .select-v0 option:focus {
        background: #f1f5f9 !important;
        color: #334155 !important;
        outline: none !important;
    }
}

/* 정렬 메뉴 스타일 */

.sort-item {
    justify-self: end;
}

.sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.sort-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sort-dropdown {
    position: relative;
    z-index: 1000;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    overflow: hidden;
    transform: translateX(calc(-100% + 40px));
}

.sort-menu .dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    text-decoration: none;
}

.sort-option:hover {
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
}

.sort-option.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.sort-option.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.sort-option i {
    font-size: 0.875rem;
}

.sort-option .ms-auto {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 반응형 스타일 */
@media (max-width: 576px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .sort-item {
        justify-self: stretch;
    }

    .sort-btn {
        width: 40px;
        height: 40px;
    }

    .sort-menu {
        left: 0;
        right: 0;
        min-width: auto;
        transform: none;
    }
}