@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/PlayfairDisplay-VariableFont_wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("/assets/fonts/OpenSans-VariableFont_wdth,wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

.app-header,
.navbar,
.sidebar-brand,
.app-footer {
    border: none !important;
}

/* pia zhang theme */

.navbar,
.app-header {
    background-color: #f6e4bd !important;
}
.navbar-nav,
.nav-link,
.navbar-nav i.bi {
    color: #2e1f1d !important;
}

.nav-header {
    color: #d4af37 !important;
}

.sidebar-wrapper {
    background-color: #661b18 !important;
}
.sidebar-wrapper a {
    color: #f6e4bd !important;
}
.sidebar-wrapper .sidebar-menu > .nav-item:hover > .nav-link,
.sidebar-wrapper .sidebar-menu > .nav-item.menu-open > .nav-link {
    background-color: #8c2b25 !important;
}
.card,
.table {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.btn-custom {
    background-color: #8c2b25 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
}

.btn-custom:hover {
    background-color: #72231e !important;
    color: #fff !important;
}

/* end pia zhang theme */
.sidebar-brand {
    height: 5.5rem;
    font-family: var(--font-playfair);
}
.sidebar-brand .brand-link .brand-image {
    max-height: 80px;
}

:root {
    --font-open-sans: "Open Sans", sans-serif;
    --font-playfair: "Playfair Display", serif;

    --piazhang-background-color: #661b18;

    --piazhang-sidebar-color: #f6e4bd;
    --piazhang-sidebar-hover-bg: #8c2b25;
    --piazhang-primary-accent-color: #661b18;
    --piazhang-secondary-accent-color: #c9a44c;
    --piazhang-main-color: #2e1f1d;

    --bs-body-bg: #fdf5e3;
}

.title-color {
    color: var(--piazhang-primary-accent-color) !important;
}
.sub-title-color {
    color: var(--piazhang-secondary-accent-color) !important;
}
.main-color {
    color: var(--piazhang-main-color) !important;
}

.border-gold {
    border: 1px solid var(--piazhang-primary-accent-color) !important;
}
.border-dark-gold {
    border: 1px solid rgba(226, 186, 118, 0.2) !important;
}

.form-theme::placeholder {
    color: var(--piazhang-main-color);
    opacity: 0.5;
}
.form-theme:focus {
    border-color: var(--piazhang-main-color);
    box-shadow: 0 0 2px 0.5px var(--piazhang-primary-accent-color);
}
.btn-theme:hover {
    background-color: #705116 !important;
}
.dark-btn-theme:hover {
    background-color: var(--piazhang-background-color) !important;
}

.g-text-success {
    color: #218e32 !important;
}
.g-text-danger {
    color: #a63a3a !important;
}
.g-text-warning {
    color: #a98307 !important;
}

body {
    font-family: var(--font-open-sans);
    overflow-x: hidden;
}
.font-playfair {
    font-family: var(--font-playfair);
}
.font-open-sans {
    font-family: var(--font-open-sans);
}

.main-bg-body {
    background-color: #fdf5e3 !important;
}

.bg-body-secondary {
    background-color: var(--piazhang-background-color) !important;
}
.sidebar-wrapper .sidebar-menu > .nav-item.menu-open > .nav-link,
.sidebar-wrapper .sidebar-menu > .nav-item:hover > .nav-link,
.sidebar-wrapper .sidebar-menu > .nav-item > .nav-link:focus {
    color: var(--piazhang-sidebar-color);
    background-color: var(--piazhang-sidebar-hover-bg);
}
.sidebar-wrapper a {
    color: var(--piazhang-sidebar-color);
}

h1,
h2,
h3 {
    font-family: var(--font-playfair);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    box-shadow: 0 0 0px 1000px var(--piazhang-background-color) inset !important;
    -webkit-text-fill-color: var(--piazhang-secondary-accent-color) !important;
    border: 2px solid rgba(226, 186, 118, 0.2) !important;
    font-family: var(--font-playfair) !important;
}

.scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-height: 90px;
    text-align: justify;
}
.scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .table-responsive {
        overflow-x: hidden;
    }
}
.clickable-row {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.clickable-row:hover {
    transform: scale(1.015);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.table td:first-child,
.table th:first-child {
    padding-left: 1rem;
}

.table td:last-child,
.table th:last-child {
    padding-right: 1rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e2ba76' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border: 1.5px solid #e2ba76;
    border-radius: 5px;
    padding: 6px 10px;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #fff;
    margin-right: 6px;
    cursor: pointer;
    font-size: 1.1rem;
}

.icon-edit {
    background-color: #d4af37 !important;
}

.icon-delete {
    background-color: #661b18 !important;
}

.icon-edit:hover {
    background-color: #c19d2f !important;
}

.icon-delete:hover {
    background-color: #4a1311 !important;
}

.upload-box {
    width: 160px;
    height: 180px;
    background: #f6e4bd;
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #661b18;
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

.upload-box:hover {
    background: #f3dcb0;
}

#preview-img,
#preview-img-new {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-top: 5px;
    display: none;
}

#file-name {
    font-size: 12px;
    color: #661b18;
    margin-top: 4px;
}

.remove-btn {
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

button.action-icon {
    border: none;
    padding: 0;
    background: transparent;
}

.btn-custom {
    background-color: #8c2b25 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
}

.btn-custom:hover {
    background-color: #d4af37 !important;
    color: #fff !important;
}

.upload-box {
    width: 160px;
    height: 180px;
    background: #f6e4bd;
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #661b18;
    padding: 10px;
    text-align: center;
}

.preview-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-top: 5px;
}

.field-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #661b18;
}

.field-value {
    background: #f6e4bd !important;
    color: #661b18 !important;
    border: 1px solid #d4af37 !important;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
}

.field-value:disabled {
    opacity: 1;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #8c2b25;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.btn-logout:hover {
    background-color: #6e221f;
}
