@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --graphite: #333333;
    --chestnut: #852D29;
    --red: #D7271F;
    --red-orange: #E04F1D;
    --orange: #E8761A;
    --orange-yellow: #F09C0F;
    --yellow: #F7C204;
    --white: #FFFFFF;
}


body {
    background-color: var(--yellow);
    color: var(--graphite);
    font-family: 'Montserrat', sans-serif;
    margin-left: 260px !important;

}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

/* Users page styles: table tweaks and circular action buttons */
.action-btn {
    --size: 36px;
    width: var(--size);
    height: var(--size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}

.action-btn svg,
.action-btn img {
    width: 14px;
    height: 14px;
    display: block;
    filter: invert(100%);
}

.action-btn.view {
    background: var(--orange);
}

.action-btn.edit {
    background: var(--chestnut);
}

.action-btn.delete {
    background: var(--red);
}

.action-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

/* Table tweaks for users list */
.table td,
.table th {
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
}

/* Small responsive adjustment for action buttons */
@media (max-width: 575.98px) {
    .action-btn {
        --size: 30px;
    }
}

/* Add User button styles (page-specific) */
.add-user-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: var(--chestnut);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background-color .12s ease, transform .08s ease, box-shadow .12s ease;
}

.add-user-btn:hover {
    background: var(--red-orange);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Product page additions */
.add-product-btn{ /* reuse add button styles but allow separate class */
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: var(--chestnut);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background-color .12s ease, transform .08s ease, box-shadow .12s ease;
}
.add-product-btn:hover{ background: var(--red-orange); transform: translateY(-1px); color:#FFFFFF}

.product-thumb{
    width:48px;
    height:48px;
    object-fit:cover;
    border-radius:6px;
    border: 0.2px solid var(--chestnut);
    box-shadow: 0 6px 14px rgba(133,45,41,0.08);
    background-color: rgba(133,45,41,0.06);
}


/* Confirmation modal styles (Users page) */
.confirm-modal{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    z-index: 1050;
}
.confirm-modal.show{ opacity: 1; visibility: visible; }
.confirm-modal .modal-box{
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.confirm-modal .modal-header{
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg,var(--chestnut),var(--red));
    color: white;
}
.confirm-modal .modal-body{ padding: 1.25rem; color: var(--graphite); }
.confirm-modal .modal-actions{ padding: 0.75rem 1.25rem 1.25rem; display:flex; gap:.5rem; justify-content:flex-end; }
.confirm-modal .confirm-cancel{ background:#f1f1f1; border: none; color: #333; }
.confirm-modal .confirm-yes{ background: var(--red); color: #fff; border: none; }
