/* ====================================================================
   SORTABLE TEST - Avatar Grid Styling
   ==================================================================== */

/* Container layout */
.sortable-test-container {
    display: flex;
    gap: 16px;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ====================================================================
   TEST BUTTONS (LEFT SIDEBAR)
   ==================================================================== */

.sortable-test-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--io-surface-sunken);
    border-right: 1px solid var(--io-border-subtle);
    width: 160px;
}

.sortable-test-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--io-surface-raised);
    border: 1px solid var(--io-border);
    border-radius: var(--io-radius-sm);
    color: var(--io-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--io-transition-fast);
    text-align: left;
}

.sortable-test-btn i {
    color: var(--io-accent);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.sortable-test-btn:hover {
    background: var(--io-surface-hover);
    border-color: var(--io-accent);
    color: var(--io-text-primary);
}

.sortable-test-btn:active {
    transform: scale(0.98);
}

/* Grid wrapper */
.sortable-test-grid-wrapper {
    flex: 1;
    padding: 16px;
}

.sortable-test-header {
    color: var(--io-text-primary);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sortable-test-header i {
    color: var(--io-accent);
}

/* Avatar grid */
.sortable-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Avatar card */
.avatar-card {
    position: relative;
    cursor: grab;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--io-surface-raised);
    border: 2px solid var(--io-border-subtle);
    transition: border-color 0.2s ease;
}

.avatar-card:hover {
    border-color: var(--io-accent);
}

.avatar-card:active {
    cursor: grabbing;
}

/* Avatar image */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Drag handle */
.avatar-handle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--io-accent);
    font-size: 10px;
    cursor: pointer;
    transition: all var(--io-transition-fast);
    z-index: 10;
}

.avatar-handle:hover {
    background: rgba(0, 0, 0, 0.9);
}

.avatar-handle i {
    pointer-events: none;
}

/* Avatar label */
.avatar-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--io-text-primary);
    font-size: 11px;
    text-align: center;
    pointer-events: none;
}

/* ====================================================================
   DEBUG PANEL
   ==================================================================== */

.sortable-test-debug {
    width: 300px;
    background: var(--io-surface-sunken);
    padding: 16px;
    overflow-y: auto;
    font-family: var(--io-font-mono);
    font-size: 11px;
}

.sortable-test-debug-header {
    color: var(--io-accent);
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sortable-test-debug-log {
    color: var(--io-text-secondary);
    line-height: 1.6;
}

.sortable-test-debug-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--io-border-subtle);
}

.sortable-test-debug-timestamp {
    color: var(--io-text-tertiary);
}

/* ====================================================================
   DROPDOWN CUSTOM STYLING
   ==================================================================== */

.sortable-test-dropdown-header {
    padding: 8px 12px;
    color: var(--io-text-secondary);
    font-size: 12px;
    border-bottom: 1px solid var(--io-border-subtle);
    margin-bottom: 4px;
}