/* Bottom Sheet Container */
#bluetooth-scanner-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 500;
    max-height: 50vh;
    transform: translateY(100%);  /* Hidden by default */
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

#bluetooth-scanner-drawer.open {
    transform: translateY(0);  /* Slide up */
}

/* Drag Handle */
.drag-handle {
    padding: 12px 0;
    text-align: center;
    cursor: grab;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto;
}

/* Header */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.sheet-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.close-btn-sheet {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Body */
.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.bluetooth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.scan-info {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9em;
    color: #666;
}

.error-message-sheet {
    color: #d32f2f;
    font-size: 0.9em;
    padding: 8px 0;
}

/* Footer */
.sheet-footer {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #eee;
}

.sheet-footer button {
    flex: 1;
}

/* Responsive */
@media (max-width: 480px) {
    #bluetooth-scanner-drawer {
        max-height: 60vh;
    }
}
