/* Quick Search Input Fix */
.dropdown-menu.dropdown-menu-lg { padding: 18px !important; border-radius: 18px !important; overflow: hidden !important; }
.kt-quick-search__form { height: 48px !important; padding: 0 14px !important;  background: #ffffff !important; ; display: flex !important; align-items: center !important; }
.kt-quick-search__form:focus-within {}
.kt-quick-search__form .input-group { height: 100% !important; align-items: center !important; }
.kt-quick-search__form .form-control { height: 46px !important; min-height: 46px !important; padding: 0 12px !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #111827 !important; font-size: 15px !important; font-weight: 600 !important; }
.kt-quick-search__form .form-control:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
.kt-quick-search__form .input-group-prepend, .kt-quick-search__form .input-group-append { height: 100% !important; display: flex !important; align-items: center !important; }
.kt-quick-search__form .input-group-text { border: 0 !important; background: transparent !important; padding: 0 8px !important; color: #4f46e5 !important; box-shadow: none !important; }
.kt-quick-search__form i, .kt-quick-search__form svg { color: #4f46e5 !important; }
.kt-quick-search__close { width: 30px !important; height: 30px !important; border-radius: 8px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; color: #64748b !important; background: #f8fafc !important; }
.kt-quick-search__close:hover { background: #eef2ff !important; color: #4f46e5 !important; }
.quick-search-result { margin-top: 12px !important; max-height: 460px !important; overflow-y: auto !important; overflow-x: hidden !important; padding: 8px 4px 10px !important; }
.result-body { max-height: none !important; overflow: visible !important; padding: 0 !important; }

/* KoraStats Professional Quick Search */
.dropdown-menu.dropdown-menu-lg { width: 640px !important; max-width: calc(100vw - 32px); border: 0 !important; border-radius: 18px !important; overflow: hidden !important; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important; }
.quick-search-result { background: #ffffff; max-height: 520px; overflow-y: auto; overflow-x: hidden; padding: 14px 14px 18px; }
.result-body { background: transparent; max-height: none !important; overflow: visible !important; padding: 0 !important; }

/* Scrollbar */
.quick-search-result::-webkit-scrollbar { width: 7px; }
.quick-search-result::-webkit-scrollbar-thumb { background: #c8cfdd; border-radius: 20px; }
.quick-search-result::-webkit-scrollbar-track { background: transparent; }
.result-body::-webkit-scrollbar { display: none; }

/* Section */
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 8px; margin-top: 4px; color: #334155; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-count { min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: #eef2ff; color: #4f46e5; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.result-section { margin-bottom: 8px; }

/* Result Rows */
.result-item { display: flex; align-items: center; min-height: 68px; gap: 14px; padding: 11px 12px; margin: 3px 0; border-radius: 14px; border: 1px solid transparent; color: #111827; text-decoration: none !important; transition: all .16s ease; }
.result-item:hover, .result-item.active { background: #f8fafc; border-color: #e2e8f0; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); transform: translateY(-1px); }
.result-item.active { background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%); border-color: #c7d2fe; }

/* Logo / Avatar */
.logo, .match-logos { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: #ffffff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06); }
.logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.logo.avatar { border-radius: 50%; }
.logo.avatar img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* Match Logos */
.match-logos { position: relative; }
.match-logos img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; background: #ffffff; border: 1px solid #e5e7eb; }
.match-logos img:first-child { margin-right: -7px; z-index: 2; }
.match-logos img:last-child { margin-left: -7px; z-index: 1; }

/* Match Logos - Home vs Away */
.result-item .match-logos { width: 58px !important; height: 42px !important; flex: 0 0 58px !important; border-radius: 14px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; gap: 0 !important; }
.result-item .match-logos img { width: 34px !important; height: 34px !important; object-fit: contain !important; border-radius: 50% !important; background: #ffffff !important; border: 1px solid #e5e7eb !important; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10) !important; }
.result-item .match-logos img:first-child { margin-right: -10px !important; z-index: 2 !important; }
.result-item .match-logos img:last-child { margin-left: -10px !important; z-index: 1 !important; }

/* Female Result Row */
.result-item--female { background: linear-gradient(90deg, #fff7fb 0%, #fdf2f8 100%) !important; border-color: #fbcfe8 !important; }
.result-item--female:hover, .result-item--female.active { background: linear-gradient(90deg, #fdf2f8 0%, #fae8ff 100%) !important; border-color: #f9a8d4 !important; box-shadow: 0 8px 22px rgba(219, 39, 119, 0.10) !important; }
.result-item--female .logo, .result-item--female .match-logos { border-color: #fbcfe8 !important; box-shadow: 0 6px 16px rgba(219, 39, 119, 0.10) !important; }
.result-item--female .type-badge { background: #fce7f3 !important; color: #be185d !important; }
.result-item--female:hover .type-badge, .result-item--female.active .type-badge { background: #db2777 !important; color: #ffffff !important; }
.result-item--female .result-title { color: #831843 !important; }
.result-item--female .result-meta { color: #9d174d !important; }
/* Text */
.result-main { flex: 1; min-width: 0; }
.result-title-row { display: flex; align-items: center; gap: 12px; }
.result-title { flex: 1; min-width: 0; color: #111827; font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { margin-top: 3px; color: #64748b; font-size: 12px; font-weight: 500; }

/* Badges */
.type-badge { flex: 0 0 auto; height: 24px; padding: 0 9px; border-radius: 999px; background: #f1f5f9; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.result-item:hover .type-badge, .result-item.active .type-badge { background: #4f46e5; color: #ffffff; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 42px; margin: 0 6px; padding: 0 8px; border-radius: 999px; background: #111827; color: #ffffff; font-size: 11px; font-weight: 800; }

/* Empty State */
.no-record-message { padding: 34px 20px; text-align: center; color: #64748b !important; font-size: 14px; font-weight: 600; }

/* Mobile */
@media (max-width: 767px) {
    .dropdown-menu.dropdown-menu-lg { width: calc(100vw - 24px) !important; }
    .result-title-row { align-items: flex-start; }
    .type-badge { display: none; }
}