.asset-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.asset-picker-dialog {
    width: 480px;
    max-width: 90vw;
    max-height: 70vh;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.asset-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.asset-picker-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}

.asset-picker-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-picker-close:hover {
    background: #333;
    color: #e0e0e0;
}

.asset-picker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #252525;
    border-bottom: 1px solid #333;
}

.asset-picker-search svg {
    color: #666;
    flex-shrink: 0;
}

.asset-picker-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
}

.asset-picker-search input::placeholder {
    color: #666;
}

.asset-picker-content {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
    max-height: 400px;
}

.asset-picker-loading,
.asset-picker-empty {
    padding: 32px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.asset-picker-tree {
    padding: 4px 0;
}

.asset-picker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
}

.asset-picker-item:hover {
    background: #2a2a2a;
}

.asset-picker-item.selected {
    background: #0d47a1;
}

.asset-picker-item__icon {
    display: flex;
    align-items: center;
    color: #888;
}

.asset-picker-item.selected .asset-picker-item__icon {
    color: #90caf9;
}

.asset-picker-item__name {
    font-size: 12px;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #333;
    background: #252525;
}

.asset-picker-selected {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-picker-selected .placeholder {
    color: #666;
    font-style: italic;
}

.asset-picker-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.asset-picker-actions button {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.asset-picker-actions .btn-cancel {
    background: #333;
    color: #e0e0e0;
}

.asset-picker-actions .btn-cancel:hover {
    background: #444;
}

.asset-picker-actions .btn-confirm {
    background: #1976d2;
    color: white;
}

.asset-picker-actions .btn-confirm:hover {
    background: #1565c0;
}

.asset-picker-actions .btn-confirm:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Asset Save Dialog specific styles */
.asset-save-filename {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
    background: #252525;
}

.asset-save-filename label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.asset-save-filename input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 8px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
}

.asset-save-filename input:focus {
    border-color: #1976d2;
}

.asset-save-extension {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

/* New folder styles */
.asset-save-new-folder-btn {
    padding: 8px 16px;
    border-top: 1px solid #333;
}

.asset-save-new-folder-btn button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}

.asset-save-new-folder-btn button:hover {
    background: #444;
}

.asset-save-new-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid #333;
    background: #252525;
}

.asset-save-new-folder input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 8px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
}

.asset-save-new-folder input:focus {
    border-color: #1976d2;
}

.asset-save-new-folder button {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.asset-save-new-folder button:first-of-type {
    background: #1976d2;
    color: white;
}

.asset-save-new-folder button:first-of-type:hover {
    background: #1565c0;
}

.asset-save-new-folder button:first-of-type:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.asset-save-new-folder button:last-child {
    background: #333;
    color: #e0e0e0;
}

.asset-save-new-folder button:last-child:hover {
    background: #444;
}
