/* ==========================================================
   DOG REGISTRY - SHARED INDEX / LIST UI
   ========================================================== */

.registry-index-page {
    width: 100%;
}

.registry-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #e2d9cc;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(61, 40, 30, .045);
}

.registry-search {
    position: relative;
    min-width: 260px;
    max-width: 760px;
    display: flex;
    align-items: center;
    flex: 1;
}

.registry-search > i {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: #aa8b4d;
    font-size: 12px;
    pointer-events: none;
}

.registry-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 42px 9px 38px;
    color: #47382f;
    background: var(--registry-surface);
    border: 1px solid var(--registry-input-border);
    border-radius: 7px;
    outline: none;
    font-size: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.registry-search input::placeholder {
    color: #a0968f;
}

.registry-search input:focus {
    border-color: #bd7c87;
    box-shadow: 0 0 0 .2rem rgba(148, 19, 40, .10);
}

.registry-search-clear {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b7f76;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
}

.registry-search-clear:hover {
    color: var(--club-burgundy);
    background: #f7ece9;
}

.registry-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.registry-create-button,
.registry-retry-button,
.registry-clear-filter-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.registry-create-button {
    color: #fff;
    background: var(--club-burgundy);
    border: 1px solid var(--club-burgundy);
}

.registry-create-button:hover {
    color: #fff;
    background: var(--club-burgundy-dark);
    border-color: var(--club-burgundy-dark);
}

.registry-count {
    min-width: 78px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    padding: 8px 11px;
    background: #fbf7ef;
    border: 1px solid #eadfce;
    border-radius: 7px;
}

.registry-count strong {
    color: #49362d;
    font-family: var(--registry-font-heading);
    font-size: 16px;
}

.registry-count span {
    color: #8d8076;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.registry-list-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    color: #82756c;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #e4dbcf;
    border-radius: 10px;
    text-align: center;
}

.registry-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.registry-list-spinner {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--club-burgundy);
    border-width: .2em;
}

.registry-state-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--club-burgundy);
    background: #f7ece9;
    border: 1px solid #ecd8d2;
    border-radius: 50%;
    font-size: 18px;
}

.registry-list-state h3,
.registry-search-empty h4 {
    margin: 0;
    color: #49352c;
    font-family: var(--registry-font-heading);
    font-size: 19px;
}

.registry-list-state p,
.registry-search-empty p {
    margin: 7px 0 17px;
    color: #8a7d74;
    font-size: 11px;
}

.registry-retry-button,
.registry-clear-filter-button {
    color: var(--club-burgundy);
    background: transparent;
    border: 1px solid rgba(148, 19, 40, .32);
}

.registry-retry-button:hover,
.registry-clear-filter-button:hover {
    color: #fff;
    background: var(--club-burgundy);
    border-color: var(--club-burgundy);
}

.registry-search-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #887b72;
    background: #fffdf9;
    border: 1px dashed #ddcfbe;
    border-radius: 10px;
    text-align: center;
}

.registry-search-empty > i,
.registry-search-empty-icon {
    margin-bottom: 10px;
    color: #b18f49;
    font-size: 20px;
}

@media (max-width: 768px) {
    .registry-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .registry-search {
        min-width: 0;
        max-width: none;
    }

    .registry-toolbar-actions {
        justify-content: space-between;
    }

    .registry-create-button {
        flex: 1;
    }
}

/* ==========================================================
   INDEX PAGE HEADING
   ========================================================== */

.registry-index-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.registry-index-heading-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    color: var(--club-burgundy);
    background: linear-gradient(145deg, #fbf5eb, #f4e9d8);
    border: 1px solid #e6d8c0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(61, 40, 30, .05);
    font-size: 16px;
}

.registry-index-heading-content {
    min-width: 0;
}

.registry-index-eyebrow {
    margin-bottom: 3px;
    color: #9b7b36;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.registry-index-title {
    margin: 0;
    color: var(--club-brown);
    font-family: var(--registry-font-heading);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
}

.registry-index-description {
    margin: 5px 0 0;
    color: #85786f;
    font-size: 10px;
}

@media (max-width: 600px) {
    .registry-index-heading-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .registry-index-title {
        font-size: 26px;
    }
}
