#jsilny-client-directory {
    max-width: 1200px;
    margin: 40px auto;
    font-family: "Segoe UI", sans-serif;
}

.jsilny-search-box {
    position: relative;
}

#jsilny-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #009EA8;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
#jsilny-search:focus {
    border-color: #1abc9c;
}

.loader {
    display: none;
    position: absolute;
    right: 20px;
    top: 12px;
    width: 20px;
    height: 20px;
    border: 3px solid #009EA8;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

#jsilny-results {
    margin-top: 20px;
    background: #f7f7f7;
    padding: 10px 0;
    border-radius: 10px;
}

.jsilny-results-wrap {
    margin-top: 10px;
    max-width: 1200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.jsilny-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #ececec;
    transition: background 0.15s;
}
.jsilny-result:nth-child(even) {
    background: #f6f9fa;
}
.jsilny-result a {
    color: #009EA8;
    text-decoration: none;
    outline: none;
}
.jsilny-result a:focus {
    box-shadow: 0 0 0 2px #1abc9c44;
    border-radius: 4px;
}
.jsilny-result:hover {
    background: #e9f7f8;
}

.jsilny-result:last-child {
    border-bottom: none;
}

.jsilny-pagination {
    text-align: center;
    margin: 18px 0 0 0;
    user-select: none;
}

.jsilny-page-btn {
    display: inline-block;
    margin: 0 2px;
    padding: 4px 14px;
    border: 1.5px solid #bbb;
    background: #fff;
    color: #444;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.jsilny-page-btn.active,
.jsilny-page-btn:focus {
    background: #1abc9c;
    color: #fff;
    border-color: #1abc9c;
    font-weight: bold;
    outline: none;
}
.jsilny-page-btn:hover:not(.active) {
    background: #d5f7f4;
    color: #009EA8;
    border-color: #009EA8;
}

.jsilny-page-ellipsis {
    display: inline-block;
    margin: 0 4px;
    color: #aaa;
    font-size: 1.1em;
    pointer-events: none;
}

@media (max-width: 700px) {
    #jsilny-client-directory {
        max-width: 98vw;
        margin: 24px auto;
    }
    .jsilny-results-wrap {
        max-width: 99vw;
        padding: 0;
    }
    .jsilny-result {
        font-size: 14px;
        padding: 10px 6px;
        flex-wrap: wrap;
        white-space: normal;
    }
    .jsilny-pagination {
        margin-bottom: 12px;
    }
}
