﻿/* =============== AURAE × RADZEN — BASE (black is primary) =============== */
:root {
    --aurae-black: #000;
    --aurae-text: #000;
    --aurae-bg: #fff;
    --aurae-border: 1px solid #000;
    --aurae-radius: 12px;
    --aurae-font: 'Elsie', serif; /* display */
    --aurae-ui-font: 'Poppins', sans-serif; /* inputs (optional) */
}

/* Radzen typography = Aurae */
:where([class^="rz-"], [class*=" rz-"]) {
    font-family: var(--aurae-font);
    color: var(--aurae-text);
}

/* ---------- Buttons ---------- */
.aurae-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: var(--aurae-border) !important;
    border-radius: 10px !important;
    padding: .55rem .9rem !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: none !important;
    transition: filter .2s ease, transform .08s ease;
}

.aurae-btn--black {
    background: #000 !important;
    color: #fff !important;
}

.aurae-btn--ghost {
    background: #fff !important;
    color: #000 !important;
}

.aurae-btn--pill {
    border-radius: 9999px !important;
}

.aurae-btn--sm {
    padding: .3rem .55rem !important;
    font-size: .85rem !important;
}

.aurae-btn:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

.aurae-btn--black:hover:not(:disabled) {
    filter: brightness(.92);
}

.aurae-btn--ghost:hover:not(:disabled) {
    background: #000 !important;
    color: #fff !important;
}

/* Icon-only buttons (no background) */
.btn-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: .3rem .35rem !important;
    line-height: 1 !important;
}

    .btn-icon .rz-button-text {
        display: none;
    }
/* icon only */
.btn-icon--black .material-icons, .btn-icon--black .rz-icon {
    color: #000 !important;
}

.btn-icon--red .material-icons, .btn-icon--red .rz-icon {
    color: #b91c1c !important;
}

/* ---------- Inputs / dropdowns ---------- */
/*.rz-inputtext, .rz-inputtextarea, .rz-inputnumber,
.rz-calendar input, .rz-dropdown .rz-inputtext, .rz-multiselect .rz-inputtext {
    font-family: var(--aurae-ui-font, var(--aurae-font));
    border: var(--aurae-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}*/

.rz-state-focus .rz-inputtext, .rz-state-focus .rz-inputtextarea {
    box-shadow: none;
    border-color: #000;
}

/* ---------- Grid + “attached” toolbar shell ---------- */
.grid-wrap .grid-toolbar {
    border: var(--aurae-border);
    border-bottom: 0;
    border-radius: var(--aurae-radius) var(--aurae-radius) 0 0;
    background: #fff;
    padding: .6rem .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.aurae-grid .rz-data-grid {
    border: var(--aurae-border);
    border-top: 0;
    border-radius: 0 0 var(--aurae-radius) var(--aurae-radius);
    overflow: hidden;
    box-shadow: none !important;
    background: #fff;
}

    .aurae-grid .rz-data-grid .rz-header-cell,
    .aurae-grid .rz-data-grid .rz-cell {
        padding: .55rem .75rem;
    }

/* ---------- Dialogs (clean) ---------- */
.rz-dialog {
    border: var(--aurae-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: none !important;
}

.rz-dialog-titlebar {
    border-bottom: var(--aurae-border);
    text-transform: uppercase;
}

/* ---------- Title block (centered line) ---------- */
.admin-titlewrap {
    padding: 1.2rem 0 .4rem;
}

.admin-title {
    margin: 0 auto;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(26px,2.5vw,36px);
    border-bottom: 2px solid #000;
    padding-bottom: .3rem;
}

/* Mobile tweaks */
@media (max-width:575px) {
    .grid-wrap .grid-toolbar {
        flex-wrap: wrap;
    }
}
/* === AURAE ADMIN: quick fixes === */

/* 1) Title truly centered + a bit more spacing */
.admin-titlewrap {
    padding: 2rem 0 1rem !important; /* more breathing room */
    text-align: center !important; /* center the block */
}

.admin-title {
    display: inline-block !important;
    margin: 0 auto !important;
    border-bottom: 2px solid #000;
    padding-bottom: .35rem;
}

/* 2) Add Category: white text/icon on black button (force) */
.aurae-btn--black {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

    .aurae-btn--black :is(.rz-button-text, .material-icons, .rz-icon, .rzi) {
        color: #fff !important;
        fill: #fff !important;
    }

/* 3) Edit/Delete icon-only colors (no background) */
.btn-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: .3rem .35rem !important;
    line-height: 1 !important;
}

    .btn-icon :is(.rz-button-text) {
        display: none !important;
    }

.btn-icon--black :is(.material-icons, .rz-icon, .rzi) {
    color: #000 !important;
    fill: #000 !important;
}

.btn-icon--red :is(.material-icons, .rz-icon, .rzi) {
    color: #b91c1c !important;
    fill: #b91c1c !important;
}

/* 4) Click interaction feedback for ALL buttons site-wide */
.aurae-btn, .btn-icon, .rz-button {
    transition: transform .08s ease, filter .2s ease, background .2s ease, color .2s ease;
}

    .aurae-btn:active, .rz-button:active {
        transform: translateY(1px) scale(.98);
    }

    .btn-icon:active {
        transform: scale(.9);
    }
/* optional: subtle focus ring for keyboard users */
:where(.aurae-btn, .btn-icon, .rz-button):focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}
/* === Grid Border Refinement === */
.aurae-grid .rz-data-grid {
    border-color: #000 !important;
}

.aurae-grid .rz-cell,
.aurae-grid .rz-header-cell {
    border-color: rgba(0,0,0,0.15) !important; /* subtle inner lines */
}
.aurae-grid .rz-header-cell {
    background-color: #f8f8f8 !important;
    font-weight: 600;
}
/* ===== AURAE BUTTON HOVER + CLICK FEEDBACK ===== */

/* Ghost (white) button: subtle lift and invert border */
.aurae-btn--ghost {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    transition: all 0.2s ease, transform 0.08s ease;
}

    .aurae-btn--ghost:hover:not(:disabled) {
        background: #f7f7f7 !important; /* soft grey highlight */
        color: #000 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    }

    .aurae-btn--ghost:active:not(:disabled) {
        background: #eaeaea !important;
        transform: translateY(1px);
        box-shadow: none;
    }

/* Black button hover: slight glow and lift */
.aurae-btn--black {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    transition: all 0.2s ease, transform 0.08s ease;
}

    .aurae-btn--black:hover:not(:disabled) {
        background: #111 !important; /* deeper black */
        box-shadow: 0 2px 5px rgba(0,0,0,0.25);
        transform: translateY(-1px);
    }

    .aurae-btn--black:active:not(:disabled) {
        transform: translateY(1px) scale(.98);
        box-shadow: none;
    }

/* Icon buttons click feel */
.btn-icon {
    transition: transform 0.08s ease, opacity 0.15s ease;
}

    .btn-icon:hover {
        opacity: 0.7;
    }

    .btn-icon:active {
        transform: scale(0.9);
        opacity: 1;
    }

/* ---- Products page specific polish ---- */
.products-wrap .toolbar-count {
    margin-left: auto;
    color: #666;
    font-size: .95rem;
}

/* Make all attached grids use matte-black header + crisp borders (matches what you liked) */
/*:where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table thead th {
    background: #000 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #000 !important;
    border-inline-end: 1px solid #000 !important;
}

    :where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table thead th:first-child {
        border-inline-start: 1px solid #000 !important;
    }*/

/* Outer frames = solid black; inner dividers = subtle grey */
:where(.products-grid, .colors-grid, .sizes-grid, .images-grid) :where(.rz-data-grid, .rz-grid) {
    border: 1px solid #000 !important;
}

:where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table tbody td {
    border-top: 1px solid rgba(0,0,0,.15) !important;
    border-inline-end: 1px solid rgba(0,0,0,.15) !important;
}

    :where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table tbody td:first-child {
        border-inline-start: 1px solid rgba(0,0,0,.15) !important;
    }

    :where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table thead th:last-child,
    :where(.products-grid, .colors-grid, .sizes-grid, .images-grid) .rz-grid-table tbody td:last-child {
        border-inline-end: 1px solid #000 !important;
    }

/* Buttons: keep your site-wide interactions */
.products-toolbar .aurae-btn--ghost:hover {
    background: #f7f7f7 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.products-toolbar .aurae-btn--ghost:active {
    background: #eaeaea !important;
    transform: translateY(1px);
    box-shadow: none;
}

.products-toolbar .aurae-btn--black:hover {
    background: #111 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.products-toolbar .aurae-btn--black:active {
    transform: translateY(1px) scale(.98);
    box-shadow: none;
}

/* Icon buttons hover feedback */
.btn-icon {
    transition: transform .08s ease, opacity .15s ease;
}

    .btn-icon:hover {
        opacity: .75;
    }

    .btn-icon:active {
        transform: scale(.9);
        opacity: 1;
    }

/* Radzen switch alignment nudge (keeps rows neat) */
.rz-switch {
    vertical-align: middle;
}

/* highlight the managed product row */
.row-managed td {
    background: #fff7cc !important;
}


.rz-switch.rz-switch-checked .rz-switch-circle {
    background: #000000;
}

/* ==== Products grid column sizing & wrapping ==== */
.products-grid .col-compact {
    width: 48px;
}

.products-grid .col-actions {
    width: 120px;
}

.products-grid .col-price {
    width: 140px;
}

.products-grid .col-category {
    min-width: 200px;
    max-width: 280px;
}

.products-grid .col-switch {
    width: 120px;
    text-align: center;
}

.products-grid .col-created {
    width: 180px;
    white-space: nowrap;
}

.products-grid .col-name {
    /* allow readable wrapping instead of ellipsis */
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.25;
    /* limit height to ~2 lines; show full on hover if you want later */
    max-height: 3.2em;
    overflow: hidden;
}

/* tighten icon buttons in actions */
.products-grid .col-actions .btn-icon {
    padding: .25rem .35rem !important;
}

/* Optional: on narrow screens hide Created (keeps key info visible) */
@media (max-width: 768px) {
    .products-grid .col-created {
        display: none;
    }

    .products-grid .col-category {
        max-width: none;
    }
}
/* Allow grid header text to wrap and never ellipsis */
.rz-grid-table thead th .rz-column-title-content {
    white-space: normal !important;
    text-overflow: unset !important;
    overflow: visible !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
}

/* ============================================
   AURAE — RADZEN DIALOG SKIN
   (affects all <RadzenDialog/> popups)
   ============================================ */
.rz-dialog {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
    overflow: hidden;
}

.rz-dialog-titlebar {
    padding: 14px 18px !important;
    background: #f8f9fb !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

    .rz-dialog-titlebar .rz-dialog-title {
        font-weight: 700 !important;
        font-size: 1rem !important;
        color: #111 !important;
    }

.rz-dialog-content {
    padding: 18px !important;
    font-size: .95rem !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.rz-dialog-actions {
    padding: 14px 18px !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
}

/* Buttons */
.rz-dialog .rz-button {
    border-radius: 12px !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
}

    /* “Remove” = danger, “Cancel” = subtle */
    .rz-dialog .rz-button.rz-primary {
        background: #c92a2a !important; /* Aurae red */
        border-color: rgba(201,42,42,.2) !important;
    }

        .rz-dialog .rz-button.rz-primary:hover {
            filter: brightness(0.96);
        }

    .rz-dialog .rz-button:not(.rz-primary) {
        background: #fff !important;
        border: 1px solid rgba(0,0,0,.12) !important;
        color: #111 !important;
    }

        .rz-dialog .rz-button:not(.rz-primary):hover {
            border-color: rgba(0,0,0,.2) !important;
        }
    /* =====================================================
   Aurae Dialog Fix — force danger red for "Remove"
   ===================================================== */
    .rz-dialog .rz-button.rz-primary,
    .rz-dialog .rz-button.rz-primary:focus {
        background-color: #c92a2a !important; /* Aurae red */
        border-color: #c92a2a !important;
        color: #fff !important;
    }

        .rz-dialog .rz-button.rz-primary:hover {
            background-color: #b02323 !important; /* darker hover */
            border-color: #b02323 !important;
        }

        .rz-dialog .rz-button.rz-primary:active {
            background-color: #981e1e !important;
            border-color: #981e1e !important;
        }

/* Pointer cursor on all interactive buttons/links */
button,
.btn,
.rz-button,
.aurae-btn,
[role="button"],
button[type="button"],
button[type="submit"] {
    cursor: pointer;
}

    /* Disabled stays default cursor */
    button:disabled,
    .btn:disabled,
    .rz-button:disabled,
    .aurae-btn:disabled {
        cursor: not-allowed;
        opacity: .6;
    }

/* Subtle press animation */
.btn, .rz-button, .aurae-btn, button {
    transition: transform 0.06s ease, box-shadow 0.12s ease;
}

    .btn:active, .rz-button:active, .aurae-btn:active, button:active {
        transform: translateY(1px) scale(0.99);
    }

    /* Optional hover lift */
    .btn:hover:not(:disabled),
    .rz-button:hover:not(:disabled),
    .aurae-btn:hover:not(:disabled),
    button:hover:not(:disabled) {
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }
