.ezasl-box,
.ezasl-box * {
    box-sizing: border-box;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.ezasl-box {
    width: 100%;
    max-width: 660px;
    position: relative;
}

/* SEARCH BAR */
.ezasl-form {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.ezasl-form:focus-within {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 14px 32px rgba(37, 99, 235, .16);
    transform: translateY(-1px);
}

.ezasl-input {
    flex: 1;
    width: 100%;
    height: 52px;
    border: 0 !important;
    outline: 0 !important;
    padding: 0 10px 0 22px;
    font-size: 15px;
    font-weight: 400;
    color: #0f172a !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ezasl-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ezasl-clear {
    display: none;
    width: 27px;
    height: 27px;
    min-width: 27px;
    border: 0;
    border-radius: 50%;
    background: #334155;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 27px;
    padding: 0;
    transition: transform .15s ease, background .15s ease;
}

.ezasl-clear:hover {
    background: #0f172a;
    transform: scale(1.05);
}

.ezasl-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 8px;
}

.ezasl-btn-search {
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    cursor: pointer;
    font-size: 17px;
    transition: background .15s ease, transform .15s ease;
}

.ezasl-btn-search:hover {
    background: #e0f2fe;
    transform: scale(1.04);
}

/* ASK AI BUTTON */
.ezasl-btn-ai {
    position: relative;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .24);
    transition: all .25s ease;
}

.ezasl-btn-ai span {
    position: relative;
    z-index: 2;
}

.ezasl-btn-ai::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    opacity: 0;
    transition: opacity .25s ease;
}

.ezasl-btn-ai::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transition: left .55s ease;
}

.ezasl-btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .34);
}

.ezasl-btn-ai:hover::before {
    opacity: 1;
}

.ezasl-btn-ai:hover::after {
    left: 120%;
}

/* DROPDOWN UNDER SEARCH BAR */
.ezasl-overlay {
    position: fixed !important;
    z-index: 2147483647 !important;
    display: none;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

.ezasl-panel {
    width: 100%;
    max-height: 360px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, .20),
        0 4px 12px rgba(15, 23, 42, .06);
}

.ezasl-panel-head {
    display: none;
}

.ezasl-results {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    padding: 6px;
}

.ezasl-results::-webkit-scrollbar {
    width: 7px;
}

.ezasl-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* RESULT ITEM */
.ezasl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 14px;
    background: #ffffff;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ezasl-item + .ezasl-item {
    margin-top: 4px;
}

.ezasl-item:hover,
.ezasl-item.ezasl-active {
    background: linear-gradient(90deg, #eff6ff, #ffffff);
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 #2563eb;
}

.ezasl-item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #eff6ff);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ezasl-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ezasl-item-title {
    line-height: 1.35;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.ezasl-item-type {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.25;
}

.ezasl-highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: 700;
}

/* EMPTY / STATUS */
.ezasl-status {
    padding: 18px 16px;
    color: #64748b;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.ezasl-no-results {
    padding: 26px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
}

.ezasl-no-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.ezasl-no-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.ezasl-no-text {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 18px;
}

.ezasl-ask-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .26);
    transition: all .2s ease;
}

.ezasl-ask-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .34);
}

/* MOBILE */
@media (max-width: 560px) {
    .ezasl-form {
        height: 50px;
    }

    .ezasl-input {
        height: 50px;
        padding-left: 16px;
        font-size: 14px;
    }

    .ezasl-actions {
        gap: 4px;
        padding-right: 5px;
    }

    .ezasl-btn-search {
        width: 36px;
        height: 36px;
    }

    .ezasl-btn-ai {
        height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .ezasl-btn-ai span {
        max-width: 62px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ezasl-panel,
    .ezasl-results {
        max-height: 320px;
    }

    .ezasl-item {
        padding: 12px;
    }

    .ezasl-item-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .ezasl-item-title {
        font-size: 14px;
    }

    .ezasl-item-type {
        font-size: 12px;
    }
}