:root {
    --wpcd-transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --wpcd-backdrop: rgba(0, 0, 0, 0.4);
}

/* body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f7;
}*/

/* --- Bottom Sheet Wrapper (Backdrop) --- */
.wpcd-bottom-sheet-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--wpcd-backdrop);
    display: none; /* Controlled by JS */
    opacity: 0;
    transition: opacity var(--wpcd-transition);
    align-items: flex-end;
    justify-content: center;
}

/* --- The Sheet Container --- */
.wpcd-bottom-sheet {
    background: #121A23;
    width: 100%;
    min-height: 100px;
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    position: relative;
    transform: translateY(100%);
    transition: transform var(--wpcd-transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
}

/* Desktop specific sizing */
@media (min-width: 768px) {
    .wpcd-bottom-sheet {
        max-width: 600px;
    }
}

/* Active State Classes */
.wpcd-bottom-sheet-wrapper.is-visible {
    display: flex;
}
.wpcd-bottom-sheet-wrapper.is-active {
    opacity: 1;
}
.wpcd-bottom-sheet-wrapper.is-active .wpcd-bottom-sheet {
    transform: translateY(0);
}

/* --- Internal Components --- */
.wpcd-bs-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #777;
}

/* Flutter-style drag handle (Visual only) */
.wpcd-bs-handle {
    width: 40px;
    height: 5px;
    background: #777;
    border-radius: 10px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.wpcd-bs-close {
    background: #000;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wpcd-bs-close:hover {
    background: #e5e5e5;
}

.wpcd-bs-title {
    margin-left: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.wpcd-bs-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.5;
    color: #333;
}

/* Helper buttons for demo */
.trigger-btn {
    padding: 12px 24px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    background: #007aff;
    color: white;
    font-weight: 600;
    cursor: pointer;
}