/* ── Slide Drawer Component Styles ───────────────── */
.ui-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: var(--drawer-width, 320px);
    max-width: 100vw;
    background: #fff;
    z-index: 2000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.ui-drawer--left {
    left: 0;
    transform: translateX(-105%);
}

.ui-drawer--right {
    right: 0;
    transform: translateX(105%);
}

.ui-drawer.is-active {
    transform: translateX(0);
}

/* Header */
.ui-drawer__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-drawer__title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.ui-drawer__close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.ui-drawer__close:hover {
    color: #0f172a;
}

/* Body */
.ui-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Footer */
.ui-drawer__footer {
    padding: 20px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* Overlay */
.ui-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ui-drawer__overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjust */
@media (max-width: 480px) {
    .ui-drawer {
        width: 100vw !important;
    }
}
