﻿/* =========================
   HEADER
========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-title {
    font-weight: 800;
}

.page-subtitle {
    font-size: .85rem;
    color: var(--rz-text-secondary-color);
}

/* =========================
   TOOLBAR
========================= */

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* =========================
   SEARCH (BASE)
========================= */

.toolbar-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--rz-base-100);
    border-radius: 12px;
    padding: .4rem .7rem;
    border: 1px solid rgba(var(--rz-base-contrast-rgb), .08);
    transition: all .2s ease;
}

    /* INPUT BASE */
    .toolbar-search input {
        border: none !important;
        background: transparent !important;
        outline: none;
        color: var(--rz-text-color);
    }

    /* =========================
   FIX RADZEN TEXTBOX (REAL)
========================= */

    .toolbar-search .rz-inputtext {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

/* =========================
   DARK MODE REAL FIX
========================= */

html.dark .toolbar-search,
.rz-dark .toolbar-search {
    background: rgba(var(--rz-base-contrast-rgb), .10) !important;
    border: 1px solid rgba(var(--rz-base-contrast-rgb), .18) !important;
}

    /* INPUT REAL */
    html.dark .toolbar-search .rz-inputtext,
    .rz-dark .toolbar-search .rz-inputtext {
        background: transparent !important;
        color: var(--rz-text-color) !important;
    }

        /* PLACEHOLDER */
        html.dark .toolbar-search .rz-inputtext::placeholder,
        .rz-dark .toolbar-search .rz-inputtext::placeholder {
            color: rgba(var(--rz-text-secondary-color-rgb), .6);
        }

    /* ICON */
    html.dark .toolbar-search .rz-icon {
        color: rgba(var(--rz-text-secondary-color-rgb), .7);
    }
/* =========================
   FOCUS EFFECT (PRO)
========================= */

.toolbar-search:focus-within {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), .15);
}
