/* GLOBAL */
.pe-wrapper {
    min-width: 100vw !important;
    padding: 0 40px;
    margin: 20px calc(50% - 50vw) !important;
    box-sizing: border-box;
}

.pe-wrapper * {
    font-family: 'Source Serif Pro', serif !important;
    font-size: 14px;
}
/* TOOLBAR */
.pe-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}
.pe-btn {
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #000;
    font-weight: 600;
    background: #fff;
    font-size: 14px !important;
}

.pe-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pe-save, .pe-cancel {
    padding: 8px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.pe-save {
    background: black;
    color: white;
}

.pe-cancel {
    background: #eee;
}

.pe-des {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #aaa !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: 'Source Serif Pro', serif !important;
    box-sizing: border-box !important;
}

.field-title {
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    font-size: 15px;
}
.header {
    padding: 10px 0;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-error {
    color: red;
    font-size: 12px;
    height: 0;
}
/* FILTER INPUT */
.lr-filter {
    width: 100%;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f8f8;
    box-sizing: border-box;
    transition: 0.2s ease;
}
.lr-filter:focus {
    border-color: #4a90e2;
    background: #fff;
    outline: none;
}

.lr-table th,
.lr-table td,
#lr-view-table th,
#lr-view-table td {
    border: 1px solid #ccc;
}

/* TABLE */
.lr-table,
#lr-view-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.lr-table tr:hover td,
#lr-view-table tr:hover td {
    background: #f9fbff;
}

/* ===========================
   MOBILE RESPONSIVE FIX
   =========================== */
button,
.pe-btn,
.q-delete-all,
.ps-toggle,
.ps-del,
.file-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
}
@media (max-width: 768px) {
    .pe-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pe-btn {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    .pe-wrapper {
        padding: 0 15px;
    }
    .pe-layout {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
    }

    .pe-left,
    .pe-right {
        flex: 0 0 auto;
    }
}

.avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
}

.user-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* =========================
   🎄 CHRISTMAS LIGHTS
   ========================= */

.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    pointer-events: none;
    z-index: 999999;
    display: flex;
    justify-content: center;
    gap: 23px;
    padding-top: 10px;
}

.christmas-lights::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    height: 2px;
}

.christmas-lights span {
    width: 15px;
    height: 18px;
    border-radius: 50% 50% 45% 45%;
    animation: glow 1.8s infinite alternate;
}

.christmas-lights span:nth-child(6n+1) { background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation-delay: .1s; }
.christmas-lights span:nth-child(6n+2) { background: #ffd93d; box-shadow: 0 0 10px #ffd93d; animation-delay: .3s; }
.christmas-lights span:nth-child(6n+3) { background: #3ddcff; box-shadow: 0 0 10px #3ddcff; animation-delay: .5s; }
.christmas-lights span:nth-child(6n+4) { background: #3dff7a; box-shadow: 0 0 10px #3dff7a; animation-delay: .7s; }
.christmas-lights span:nth-child(6n+5) { background: #c77dff; box-shadow: 0 0 10px #c77dff; animation-delay: .9s; }
.christmas-lights span:nth-child(6n)   { background: #ff8fab; box-shadow: 0 0 10px #ff8fab; animation-delay: 1.1s; }

@keyframes glow {
    from {
        opacity: .4;
        transform: translateY(0);
        filter: brightness(0.7);
    }
    to {
        opacity: 1;
        transform: translateY(-2px);
        filter: brightness(1.2);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: black;
    position: relative;
    height: 133px;
    padding: 0 24px;
}

.nav-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.nav-left {
    display: flex;
    align-items: center;
    position: absolute;
    top: 40px;
    left: 20px;
}
.user-info {
    color: white;
    margin-right: 20px;
    font-size: 16px;
}

/* Burger Menu */
.bs-topbar {
    top: 10px;
    right: 40px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bs-topbar > * {
    pointer-events: auto;
}

.bs-nav-icon {
    color: white;
    cursor: pointer;
    display: none;
    
}

.bs-nav-menu {
    list-style: none;
    margin: 0;
    padding: 10px 15px;
    display: flex;
    gap: 25px;
    position: absolute;
    top: 50px;
    right: 20px;
    white-space: nowrap;
}

.bs-nav-menu li a {
    color: white;
    text-decoration: none;
}

.bs-nav-menu.open {
    display: block !important;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    padding: 20px;
    border-radius: 16px;
}

.bs-nav-menu.open li a {
    color: black !important;
    padding: 10px 0;
    display: inline-block;
    font-size: 15px !important;
}

@media (max-width: 780px) {
    .bs-nav-icon {
        display: block !important;
        font-size: 26px;
        top: 40px;
        right: 30px;
        position: absolute;
    }

    .bs-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 45px;
        right: 0;
        background: white;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.25);
        z-index: 100000;
    }

    .bs-nav-menu.open {
        display: block;
    }

    .bs-nav-menu li a {
        color: black !important;
        display: block;
        padding: 10px 0;
    }
}
